A minimalist JavaScript closure to probe the user agent's type and version using feature detection.