revised index.html and web.js for hw4 pt2