add browser detection JS, refs #26