Quick Sorting Algorithm In Javascript Code