update buffer web.js