Dependency-free standalone client-side UA detection