JavaScript-Plugin: Carriage returns escapen