Line break from PHP to Javascript

$pid = $data['patient_id'];
$msg = "新增氧氣治療至HIS時發生錯誤:\\n" . 
	"時間: " . std_time() . "\\n" . 
	"病歷號: " . $pid . "\\n" . 
	"HIS回傳: " . $err;