js quicksort for fun