Porting simple anagrams to Javascript.