updated web.js to course hw4