https://codepen.io/Rahul-Reddy/full/jadyzy/
Thanks for your feedback.
Would be good to move code into functions