Some scripts stop working because of user agent sniffing client side. What are the good strategy to adopt when doing user agent sniffing.