add pure js quicksort