added buffer to the web.js