Word frequency comparison engine on Node.js