only use window.jQuery if it supports required jQuery.fn.on

This is a safe and simple fix to the legacy jQuery situation referenced in #2163 until the API in issue #608 is refined and implemented.