Ajax: Support usage without jQuery.event

Fixes #15118