Js judges the browser