Modified web.js to read in index.html contents