code: function() {
              var str = arguments[0],
                  reg,
                  i;
  
              for (i = 0; i < arguments.length - 1; i++) {
                  reg = new RegExp("\\{" + i + "\\}", "gm");
                  str = str.replace(reg, arguments[i + 1]);
              }
  
              return str;
          }
docs: String formatter.
  Accepts first param as target string, and following params as strings to
  replace placeholders (eg; {0}).
  courtesy: SO <http://stackoverflow.com/a/1038930/414749>