title: Javascript meal counter .toFixed plus add comma
body: <pre><code>&lt;script&gt;
  var START_DATE = new Date("January 01, 2013 00:00:00");
  var INTERVAL = 0.25;
  var INCREMENT = 0.001;
  var START_VALUE = 0;
  var count = 0;
  function addCommas(str){
     var arr,int,dec;
     str += '';
  
     arr = str.split('.');
     int = arr[0] + '';
     dec = arr.length&gt;1?'.'+arr[1]:'';
  
     return int.replace(/(\d)(?=(\d{3})+$)/g,"$1,") + dec;
  }window.onload = function(){
   var msInterval = INTERVAL * 1000;
   var now = new Date();
   count = parseInt((now - START_DATE)/msInterval) * INCREMENT + START_VALUE;
   document.getElementById('counter').innerHTML = addCommas(count);
   setInterval("count += INCREMENT; document.getElementById('counter').innerHTML =     addCommas(count);", msInterval);
  }
  &lt;/script&gt;
  &lt;div id="counter"&gt; 30k&lt;/div&gt;
  </code></pre>
  
  <p>Where would I have to put .toFixed(2) in order for our non-profit organization's meals served counter to only show two places after the decimal. I tried many different places but am unsure .toFixed is even the right solution. Please assist</p>