Updated web.js
Added index.html
Changed web.js to read from index.html
Fixed missing requrie for fs
Fixed fs.readFileSync issues.
Removed buffer.write
Added missing braces to buf.string
Added missing 'to' to buf.string.