merge sort works, javascript Closure/Callback practice