Changed web.js for working with index.html