modified main.js and index.html

- html structure
modified main.js