reading contents of index.html into web.js