Queue ADT for browser and nodejs.