Cross platform async helpers for Javascript.