This is the JavaScript file I made as part of a Learnable/Sitepoint Javascript course I was doing. I wanted to save it because it's got some useful notes in it