fixed index.html javascript

problems