Edited web.js based on the instructions and screenshot from HW4