update web.js for hw4.
updated index.html for hw4.