Fix corpus localization to be overwritable

Change-Id: I512f7b9129b6c427dae3da476d7eb98b80dd60ee
diff --git a/dev/js/src/loc/dereko.js b/dev/js/src/loc/dereko.js
index 6912f9b..14e382e 100644
--- a/dev/js/src/loc/dereko.js
+++ b/dev/js/src/loc/dereko.js
@@ -10,17 +10,21 @@
   const loc = KorAP.Locale;
   
   //Query example for guided tour
-  loc.TOUR_Qexample = "laufen";
+  if (loc.TOUR_Qexample == undefined)
+    loc.TOUR_Qexample = "laufen";
 
   /* To define vc for guided tour */
-  loc.TOUR_vcQuery = {
+  if (loc.TOUR_vcQuery == undefined)
+    loc.TOUR_vcQuery = {
       '@type' : 'koral:doc',
       'key' : 'docSigle', 
       'match': 'match:eq',
       'value' : 'WPD17/D01',   
     };
   
-  loc.TOUR_Relations = "corenlp/c";
+  if (loc.TOUR_Relations == undefined)
+    loc.TOUR_Relations = "corenlp/c";
 
-  loc.TOUR_DocSigle = "WPD17/D01"; 
+  if (loc.TOUR_DocSigle == undefined)
+    loc.TOUR_DocSigle = "WPD17/D01"; 
 });