buffer version of web.js