quick implementation of browser detection.