Updated web.js for HW4 pt1