Modified web.js to load index.html