Modified index and web.js