added buffer to web.js