another iteration of web.js with buffer'