javascript-based web life-clock