Updated web.js
modded app to read from index.html