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