Update web.js for index.html