index.html and script.js updated