Async merge sort in the browser