A circular buffer for Node.js