best way to detect browser code example Example: browser version check for chrome or firefox typescript browser version check for chrome or firefox typescript