Simple piece of code for a js hex clock