Added buffer to web.js