Added extra test to support jquery <1.9

I’m want to update to a new version of jQuery. This change allows me to
do.

`Contains flags for the useragent, read from navigator.userAgent. This
property was removed in jQuery 1.9 and is available only through the
jQuery.migrate plugin. Please try to use feature detection instead.`