update web.js and index.html for hw4.1