Syntax fix in index.html javascript