Updated web.js for index.html