Moved from Web Crypto API to SJCL. Refactored code.