Moved browser sniffing to test page