Update web.js

added code to read from index.html