Updated web.js with index