Added browser detection functionality.

If jQuery version is >= 1.9 add browser detection functionality from
jquery-migrate.