Fixed maximum call stack exceeded error when calling cryptojs in a web worker