Abstract out lots of CryptoJS