Node.js program for solving cryptograms