Moved all JS to the end of the page