updated web.js
updated web.js with index
modified to source index.html
modified requires to require
modified param of buf.toString