jQuery: Promises - made first arg optional

This should hopefully resolve issues reported by @designxtek and @JohnGalt1717 in #1872