Updated index.html, fix a bug in main.js