code: function (formatted, args) {
  		"use strict";
  		for (var prop in args) {
  			if (args.hasOwnProperty(prop)) {
  				var regexp = new RegExp("\\{" + prop + "\\}", "gi");
  				formatted = formatted.replace(regexp, args[prop]);
  			}
  		}
  		return formatted;
  	}
docs: Sprintf like function.
  Replaces placeholders {0} in string with values from provided object.
  
  @param string formatted String containing placeholders.
  @param object args Object with properties to replace placeholders in string.
  
  @return String