Modified web.js using buffers