started js mergesort, mostly done