I'm terrible when it comes to JS. I have a small script that I am using in a Wordpress installation for a continually updating counter. Here is the code I am using:
window.setInterval(function () {
var countStart = 147000000000;
var count = countStart + (new Date().getTime() - new Date('12/16/2015').getTime())/.900;
jQuery("#counter2").text(count.toFixed(0));
}, 1);
How can I amend this to output the number with thousands separators? I am aware of the numerous threads on the topic of thousands separators, but cannot seem to make any suggestions work with what I have already.