Selection Sort test made in JavaScript (College)