Javascript String commas()
commas()
String.prototype.commas = function() { return this.replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1,") }