Standalone replacement for php's native get_browser() function