Really basic animated clock with JavaScript