Abbreviation calculator for Node.js