} else if (position < startPosition) { // up
                        for (i = startPosition - 1; i > position; i--) {
                            targets.push(allTargets[i]);
                        }
                    }