merged main.js into index.html