Changed web.js so that it reads from the index.html file