FIFO queue for node and browser