update web.js and index.html