Update index.html

moving and modifying javascripts