Prevents js errors if output contains quotation mark