jQuery utility for detecting browser and adding css classes to html elem