Updated web.js
Added index.html
read from index.html
modifed to read from buffer