Moved js includes to the top, so the page doesn't load until all the js is ready.