title: Adding commas to animated counting function
body: <p>I've tried everything I can find online about this but they all seem to deal with static numbers, not animated numbers.</p>
  
  <p>Is it possible to have commas added to my values as the number increases using this by modifying this function?</p>
  
  <pre><code>$('.counter').each(function() {
          var $this = $(this),
              countTo = $this.attr('data-count');
  
          $({ countNum: $this.text()}).animate({
              countNum: countTo
          },
  
          {
  
          duration: 500,
          easing:'linear',
          step: function() {
              $this.text(Math.floor(this.countNum));
          },
          complete: function() {
              $this.text(this.countNum);
                //alert('finished');
          }
  
      }); 
  </code></pre>