Use correct escaping funtion for JS