Updated web.js and index.html for hw4 part2