JavaScript widget which performs time based counting.