Updated web.js
added index