Edited web.js
Added require fs
var name for fs
./ added
Added buf.write
buf.tostring
buffer fixed