A simple clock for javascript