changed main.html and script.js