Updated web.js
HW3 part 1