Fix for new jQuery versions: Added removed functionality.

If jQuery version is >= 1.9 add browser detection functionality from
jquery-migrate.

Associated with issue #7 - this time with a nice diff :-)