Updated web.js with buffer size