Add check for the existence of $.browser. Let me remind you $.browser was removed in jQuery 1.9