Updated web.js
Add file reading and buffer writing.
Fixed up readFileSync