Binary clock using HTML5 and pure Javascript