removed small dependency on browser detection