update web.js
added index
read from file
missing bracker