JS anagram engine proposed by @jswest.