Updated web.js with read from index.html