Apply proper escaping of JS.