title: jQ Format is not a Function
body: <p>I'm having this error when on this line when I'm formatting a string using jQuery,
  <code>Uncaught TypeError: f.format is not a function</code></p>
  
  <p>This is the line where the error seems to be appearing (I've got multiple lines using the same method but none of these seem to be working)</p>
  
  <pre><code>var $li = $(f.format(betid, bet.amount, bet.icon, bet.name, bet.amount));
  </code></pre>
  
  <p>Why is this happening? I've used this before and it worked just fine?</p>
  
  <p>String:</p>
  
  <pre><code>var f = "&lt;div&gt;";
  f += "&lt;div class='avatar''&gt;";
  f += "&lt;img src='{2}'&gt;";
  f += "&lt;/div&gt;";
  f += "&lt;div&gt;{3}&lt;/div&gt;";
  var num = bet.amount;
  f += "&lt;div class='user-bet ng-binding'&gt;" + num + "&lt;/div&gt;";
  f += "&lt;/div&gt;&lt;/div&gt;"; 
  </code></pre>