updated web.js
finish part1 - homework 3