Improved jQuery interface (added IDeferred and more).