Update index.html

Seperate JS out