Modified web.js to render index.html