Updated web.js
1st draft for reading from index.html