Haxe's Deferred like jQuery's