Javascript implementation of the Enigma maachine