updated web.js for index.html