JavaScript queue processor, to produce a multi threaded like processor.