function replaceString( input, vars ) {
		var keys = Object.keys(vars);
		keys.forEach( function(key) {
			var word = '{' + key + '}';
			var value = vars[key];
			input = input.split(word).join(value);
		});
		return input;
	}
// replace a string with vars.
replace a string with vars.
replace a string with vars .
function replaceString( input, vars ) {
		var keys = Object.keys(vars);
		keys.forEach( function(key) {
			var word = '{' + key + '}';
			var value = vars[key];
			input = input.split(word).join(value);
		});
		return input;
	}
function replaceString ( input , vars ) { var keys = Object . keys ( vars ) ; keys . forEach ( function ( key ) { var word = '{' + key + '}' ; var value = vars [ key ] ; input = input . split ( word ) . join ( value ) ; } ) ; return input ; }
replace a string with vars.
replace a string with vars .