A clock directive using angularJS