changed web.js to read form index.html