repaired crypt.js