Javascript implementation of the Playfair cipher