widgets/justgage/lib/js/justgage.js
function formatNumber(x) {
  var parts = x.toString().split(".");
  parts[0] = parts[0].replace(/\B(?=(\d{3})+(?!\d))/g, ",");
  return parts.join(".");
}
function formatNumber(x) {
  var parts = x.toString().split(".");
  parts[0] = parts[0].replace(/\B(?=(\d{3})+(?!\d))/g, ",");
  return parts.join(".");
}
function formatNumber ( x ) { var parts = x . toString ( ) . split ( "." ) ; parts [ 0 ] = parts [ 0 ] . replace ( / \B(?=(\d{3})+(?!\d)) / g , "," ) ; return parts . join ( "." ) ; }
Format numbers with commas - From: http://stackoverflow.com/questions/2901102/how-to-print-a-number-with-commas-as-thousands-separators-in-javascript
Format numbers with commas - From : http : // stackoverflow . com / questions / 2901102 / how - to - print - a - number - with - commas - as - thousands - separators - in - javascript