zava75,
$(".animate-math .number").waypoint({
offset:"100%",
triggerOnce:true,
handler:function() {
var el = $(this.element).length ? $(this.element) : $(this);
var duration = Math.floor(Math.random() * 1000 + 1000);
var tos = el.attr("data-to");
var to = ("" + tos).replace(/(\d)(?=(\d\d\d)+([^\d]|$))/g, "$1 ");
alert(to);
$({property:0}).animate({property:tos}, {duration:duration, easing:"linear", step:function(val) {
val = Math.round(val);
val = val.toString().replace(/(\d)(?=(\d\d\d)+([^\d]|$))/g, "$1 ");
el.text(val);
}, complete:function() {
el.text(to);
}});
}});