in Javascript, Scripting

Klicknation Lies
So here i was going through this add i got through this site i found through google ads, Klicknation. I figured I’d go through the site since they seem to have a ‘catchy’ name. They have this installation counter on front page like the one i’ve attached. so me being as curios as i was , wanted to find out how they update their ‘installs’ counter coz i remember firefox has one too. I went through the site code and they slapped on a simple javascript counter that just randomly comes up with a number. Those are not installs ,its just a number generated from the date. code below, Shame on you!!!:

var date = new Date().getTime()/1000;
var count = Math.round(7103455+(date-1234398246)/9);
function addCommas(x1)
var rgx = /(d+)(d{3})/;
while (rgx.test(x1)) {
x1 = x1.replace(rgx, ‘$1’ + ‘,’ + ‘$2’);
return x1;
function inccount()
count = count + 1;
out = document.getElementById(‘counter’);
out.innerHTML = addCommas(count.toString());
window.setInterval(inccount, 5000);