Small binary clock in JavaScript