I know that browser detection is passe these days - the better option is for feature detection, e.g., with Modernizr. But this script is still used on some legacy projects, so I thought I'd give it an update.