web.js moded to hw2