code: function findTarget(step) {
                      var d = $q.defer();
  
                      if (els.target) {
                          d.resolve(target);
                      } else {
                          var foundTarget = angular.element($scope.current.tour.steps[step].target);
                          if (!foundTarget.length) {
                              d.resolve(false);
                          } else {
                              els.target = angular.element(foundTarget[0]);
                              d.resolve(els.target);
                          }
                      }
                      return d.promise;
                  }
docs: Internal Functions