add buffer to web.js