Updated web.js and index.html based on HW 4