Simple Javascript anagram UI