Cross platform async for JavaScript.