Binary clock implementations in pure Javascript