Update index.html

Separate js code from html code.