Updated Web.js for HW2