[javascript] How to detect Safari, Chrome, IE, Firefox and Opera browser?