Updated web.js for Homework 3