Number.prototype.thousandth = function() { return `${this}`.replace(/d{1,3}(?=(d{3})+$)/g, '$&,'); };