First iteration of anagram javascript exercise