in common.js
there is the function
function startIamAlive(){
var timeout=5*60000;
var fun=function(str){setTimeout(startIamAlive,timeout);};
$.ajax({url:"IamAlive?t="+new Date().getTime(),success:fun,error:function(s){timeout=60000;fun(s);}});
}
there you can see how it works.