Update web.js and index.html for HW4-p1