jQuery-compatible standalone Deferred (promise) implementation