diff --git a/inc/lang/en/lang.php b/inc/lang/en/lang.php
index 1298733d846e8cccf69781258d2a4950fc566e82..b7fe0822505ed2ee77a02ef9c27a82982f713a44 100644
--- a/inc/lang/en/lang.php
+++ b/inc/lang/en/lang.php
@@ -63,7 +63,8 @@ $lang['lockedby']     = 'Currently locked by';
 $lang['lockexpire']   = 'Lock expires at';
 $lang['willexpire']   = 'Your lock for editing this page is about to expire in a minute.\nTo avoid conflicts use the preview button to reset the locktimer.';
 
-$lang['notsavedyet'] = 'There are unsaved changes, that will be lost.\nReally continue?';
+$lang['notsavedyet'] = 'Unsaved changes will be lost.\nReally continue?';
+
 $lang['rssfailed']   = 'An error occured while fetching this feed: ';
 $lang['nothingfound']= 'Nothing was found.';
 
diff --git a/inc/template.php b/inc/template.php
index a48202e96421c24871d1f1d2dbca99df302df627..20d42a7a44032d36030cb787296e54dc8c1ed502 100644
--- a/inc/template.php
+++ b/inc/template.php
@@ -204,8 +204,8 @@ function tpl_metaheaders(){
 
   // include some JavaScript language strings
   ptln('<script language="javascript" type="text/javascript" charset="utf-8">',$it);
-  ptln("  var alertText   = '".addslashes($lang['qb_alert'])."'",$it);
-  ptln("  var notSavedYet = '".addslashes($lang['notsavedyet'])."'",$it);
+  ptln("  var alertText   = '".str_replace('\\\\n','\\n',addslashes($lang['qb_alert']))."'",$it);
+  ptln("  var notSavedYet = '".str_replace('\\\\n','\\n',addslashes($lang['notsavedyet']))."'",$it);
   ptln("  var DOKU_BASE   = '".DOKU_BASE."'",$it);
   ptln('</script>',$it);