Fix for new jQuery versions: Added removed functionality.

If jQuery version is >= 1.9 add browser detection functionality from
jquery-migrate.

(Same commit as the last one - trying to fix the diff)