A simple, extendable, user agent and feature detection script