Ajax: Support usage without jQuery.event

Fixes #15118
Closes gh-1588