Start working on JS selection sort