js: anagram check using merge sort