replaced browser detection (deprecated in jquery 1.9)