updates index.html and index.js