Updated web.js
update webjs to print index