A succinct implementation of jQuery Deferred interface