Replace $.browser check for ie with userAgent string check because $.browser was removed in jQuery 1.9