modified web.js to use index.html