Hex clock in AngularJS