% $da_ages{'id_loaded'}= 0;
% my $rowix= 0;
% while ($row= $fetchrow->()) {
-% print STDERR "$row\n";
% my $rowid= "id_$row->{'islandid'}";
% my $cellid= "c$rowid";
% my $age= $now - $row->{'timestamp'};
var now= Date.now();
debug('updating now='+now);
for (var ageid in <% $jsprefix %>ages) {
+ if (!<% $jsprefix %>ages.hasOwnProperty(ageid)) continue;
var oldage= <% $jsprefix %>ages[ageid];
var el= document.getElementById(<% $elemidprefix %>ageid);
var age= oldage + (now - da_pageload) / 1000;