Priority Queue abstract data type for browser and nodejs.