Updated web.js with index.html reading