title: Animated number counter not adding commas
body: <p>I have a number counter that counts from 0 to a specified value. Currently it works to the fixed decimal point, but it won't add the commas in if the value is over 1,000 (for example if i type 10000 i should expect 10,000 but it currently returns 10000.00).</p>
  
  <p>Could anyone help me out with this? I have supplied my full function that does this however the only part that runs the animation is detailed in the comments starting with //ANIMATION STARTS HERE.</p>
  
  <p>Thank you in advance!</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>numbersAnimate(_Panel) {
  
      if (!_Panel) {
        return;
      }
  
      const _Document = document.documentElement;
      let lang = _Document.getAttribute('lang');
  
      const _PanelAmounts = _Panel.querySelectorAll('.panel__amount');
      if (!_PanelAmounts) {
        return;
      }
  
      for (const _PanelAmount of _PanelAmounts) {
  
        const $PanelAmount = $(_PanelAmount);
  
        const value = $PanelAmount.data('amount');
  
        if (!value || value.length &lt; 1) {
          return;
        }
  
        if (isNaN(value)) {
          return;
        }
  
  
  
        //ANIMATION STARTS HERE....
        $PanelAmount.prop('Counter', 0).animate({
          Counter: value
        }, {
          duration: 1000,
          easing: 'linear',
          step: function(now) {
            $PanelAmount.text(this.Counter.toFixed(2));
          }
        });
  
      }
  
      _Panel.classList.add('animated');
  
  
  
  
  
      //JSON Structure
  
      "statistic": {
        "amount": "10000",
        "symbol": "%"
      },</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;span className="panel__amount panel-text-style-c" data-amount={jsonData.statistic.amount}&gt;0&lt;/span&gt;</code></pre>
  </div>
  </div>
  </p>