finish Anagram.js