Added Browser Detect Method

From http://www.quirksmode.org/js/detect.html