Updated index.html and main.js