Tomasz Nurkiewicz: Promises and Deferred objects in jQuery and AngularJS