Modified web.js to read content from index.html