Update buffer.js