A simple solution to perform recursive asynchronous calls and loops javascript turned into a simple to use jquery plugin.