Updated web.js to HW2