hw2 in web.js