updates index.html and main.js