modify index.html and web.js for hw4