Added JavaScript quicksort implementation