web.js modified to read from index.html