updated index.html and main.js