I'm using the following JS code for a timer:
jQuery(function($) {
    $('.timer').countTo({
        from: 2046430,
        to: 2048503,
        speed: 3050000,
        refreshInterval: 50,
        onComplete: function(value) {
            console.debug(this);
        }
    });
});
How do I add commas to "2046430" so it looks like "2,046,430"?
Thanks for the help!
 
    