$.browser property removed in jQuery 1.9

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