Updated web.js
adding index