updated web.js with HW4