Cleaning up the JS on page

I'll be adding this into the minified file later, don't you worry