$('.pups').each(function() {
var ns = (parseInt(this.textContent) * 10).toString();
var l = ns.length;
var first = (l % 3 === 0) ? 3 : l % 3;
var s = ns.substr(0, first);
for(var i=first; i<l; i+=3) {
s += ' ' + ns.substr(i, 3);
}
this.textContent = s;
})