Fix web.js and update index.html