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