updated web.js
added index.html
reading from buffer
added using statement
fixed a bug