/**
 * Created by house on 17/02/15.
 */
function innerTextForQuerySelector(query, text) {
	var elements = document.querySelectorAll(query)
	for (i = 0; i < elements.length; i++) {
		elements[i].innerText = text;
	}
	;
}
function innerHTMLForQuerySelector(query, html) {
	var elements = document.querySelectorAll(query)
	for (i = 0; i < elements.length; i++) {
		elements[i].innerText = html;
	}
	;
}

function replaceAll(string, find, replace) {
	return string.replace(new RegExp(escapeRegExp(find), 'g'), replace);
}

mapPlaceHolders = (function BuildMapFunction() {
	function getDataByKey(data, key) {
		key = key.split(".");
		for (var i = 0; i < key.length; i++) {
			if (typeof data === "object") {
				if (data.hasOwnProperty(key[i])) {
					data = data[key[i]];
				}
				if (typeof data !== "object") {
					return data;
				}
			}
			else {
				return data;
			}
		}
		return null;
	}

	return function MapPlaceHolder(placeholders, data) {
		for (var placeholder in placeholders) {
			if (placeholders.hasOwnProperty(placeholder)) {
				placeholders[placeholder] = getDataByKey(data, placeholders[placeholder])
			}
		}
		return placeholders;
	};
})();
@@ -513,16 +513,20 @@
 ce);%0A%7D%0A%0A
+var 
 mapPlace
@@ -947,16 +947,35 @@
 data) %7B%0A
+%09%09var output = %7B%7D;%0A
 %09%09for (v
@@ -1063,28 +1063,22 @@
 ) %7B%0A%09%09%09%09
-placeholders
+output
 %5Bplaceho
@@ -1130,16 +1130,17 @@
 holder%5D)
+;
 %0A%09%09%09%7D%0A%09%09
@@ -1150,28 +1150,22 @@
 %09return 
-placeholders
+output
 ;%0A%09%7D;%0A%7D)
@@ -1167,8 +1167,9 @@
 %7D;%0A%7D)();
+%0A

Update snippets.js