Updated web.js for the HW3