Add jQuery version check to existing jQuery presence check

Fixes #14809.
Closes #14825.

/cc @cvrebert
Perhaps we could bump the minimum jQuery to 1.9.1 to avoid the RC/Beta complications?