Updated browser detection with jQuery 1.9 support