jQuery 1.9+ compatibility. Added $.browser which was removed in jQuery 1.9 and fixed call to undocumented $.buildFragment which has changed in 1.9.