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