Cleaned up index.html

Moved a js script out of the index.html to make it look cleaner.