use $rootScope.currentTime where needed and remove loggings