Added compatibility with jQuery 1.9

The $.browser method was removed since jQuery 1.9.
Use a simple matcher to check if the browser is Safari.