Updating index.html

Correct bugs in structuring of code.