Moved the index.js script to the end of the page.