Added clock function to angular app