Anagram server in node.js