Shameless plug - CSPJS - a sweetjs macro that supports a similar async mechanism and (imho) better error handling facilities.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;srikumarks&#x2F;cspjs" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;srikumarks&#x2F;cspjs</a><p>Have been using it in a production system for a year now.