Update index.js

for js not html