updated index.html/web.js for HW4