HW 2 Updated web.js