Updated web.js to read the contents from index.html