A priority queue implementation based off a heap for node.js