make the callback method for $scope.alert|confirmWithReveal() optional