Simple queue written in javascript for browsers.