Merge pull request #9 from Ravenstine/keygen

small refactor
Ajax sends cryptext and server receives cryptext.