HW 3 Updated web.js