js: anagrams: Array#filter
js: anagram: pull private methods out of constructor