Simply queue asynchrone jobs in javascript.