A simple queue data structure for Node.js and the browser