Modified web.js again to read from index.html