Modified web.js for Homework 4