Async programming with jQuery's $.Deferred()