removed $.browser, replaced with try/catch for jQuery 1.9 support