function addEvent(evnt, elem, func) {
   if (elem.addEventListener)  // Normal
      elem.addEventListener(evnt,func,false);
   else if (elem.attachEvent) { // IE
      elem.attachEvent("on"+evnt, func);
   }
   else {
      elem[evnt] = func;
   }
}
addEvent("DOMContentLoaded", document, function(event) {
    (function(){
        var binder = {
            dataArrGlob:{},
            dataArrLoc:{},
            addValue:function(n, v, id){
                if (arguments.length == 3) {
                    if(this.dataArrLoc[id] == undefined){
                        this.dataArrLoc[id] = {};
                    }
                    this.dataArrLoc[id][n] = v;
                }
                else if(arguments.length == 2) {
                    this.dataArrGlob[n] = v;
                }
            },
            addArrValues: function(objVal){
                for (var name in objVal) {
                    this.addValue(name, objVal[name]);
                }
            },
            initData: function(){
                for (var keyGlob in this.dataArrGlob) {
                    insertValuesGlob(keyGlob, this.dataArrGlob[keyGlob]);
                }
                //TODO part for localized function
                for (var keyLoc in this.dataArrLoc) {
                    
                }
            },
            printData: function(){
                for (var k in this.dataArrGlob) {
                    console.log( k +" --> "+ this.dataArrGlob[k]);
                }
                for (var j in this.dataArrLoc) {
                    console.log( j );//+" --> "+ this.dataArrLoc[j]["name"]+" : "+this.dataArrLoc[j]["value"]);
                    var propObj = this.dataArrLoc[j];
                    for (var g in propObj) {
                        console.log("-- "+g+" : "+propObj[g]);
                    }
                }
            }
            //TODO
            //sendHTML: function(ajaxReceiver){
            //    
            //} 
        };
        //TODO function localized replace "insertValuesLoc"
        function insertValuesLoc(id, name, value) {
            
            return true;
        }
        
        function insertValuesGlob(name, value) {
            var pattern = new RegExp('{{'+name+'}}', "gi");
            var body = document.getElementsByTagName("body")[0];
            var bodyText = body.innerHTML;
            bodyText = bodyText.replace(pattern, value);
            body.innerHTML = bodyText;
            return true;
        }
        
        window.Binder = binder;
        window.$B = window.Binder;
    })();
});
@@ -1238,19 +1238,18 @@
 or (var 
-key
+id
 Loc in t
@@ -1278,32 +1278,214 @@
                 
+ dataObj = this.dataArrLoc%5BidLoc%5D;%0A                     for(var nameLoc in dataObj)%7B%0A                        insertValuesLoc(idLoc, nameLoc, dataObj%5BnameLoc%5D);%0A                     %7D
 %0A               
@@ -1757,85 +1757,14 @@
 log(
- j );//+%22 --%3E %22+ this.dataArrLoc%5Bj%5D%5B%22name%22%5D+%22 : %22+this.dataArrLoc%5Bj%5D%5B%22value%22%5D
+%22#%22+j 
 );%0A 
@@ -1898,18 +1898,21 @@
 le.log(%22
+  
 --
+%3E
  %22+g+%22 :
@@ -2211,32 +2211,269 @@
 ) %7B%0A            
+var pattern = new RegExp('%7B%7B'+name+'%7D%7D', %22gi%22);%0A            var local = document.getElementById(id);%0A            var locText = local.innerHTML;%0A            locText = locText.replace(pattern, value);%0A            local.innerHTML = locText;
 %0A            ret
@@ -2474,32 +2474,32 @@
    return true;%0A
+
         %7D%0A      
@@ -2488,33 +2488,24 @@
 ;%0A        %7D%0A
-        %0A
         func

Add function to local replace