Deleting buffer in web.js