updating web.js with buffer