updated web.js
added index