Recursive QuickSort in Javascript