added jsDocs around the browser detection functions