cleaned up web.js and finalized index.html according to part1 of hw4