[javascript] Detect Safari browser