Updated web.js
added index.html
reading into a buffer
set encoding