Modified web.js to use index.html