modified web.js to read contents of index.html