merge sort (js)