Updated web.js
reading from index.html