Added in javascript merge sort