updated web.js with index.html