jquery Deferred fix for jquery versions < 1.5

Well, it's not a big fix/issue but when jquery < 1.5 is used (it happens sometimes in legacy code), the Deferred object/function is not available and the exception is thrown