jQuery 1.9 - $.browser removed

When I tested the latest beta of jQuery the chosen plugin throws an error. Since jQuery 1.9 has removed $.browser I added the user agent sniffing.