i would put all the "var" declarations at the top, so like this

     options = options || {};
     var gcm = sjcl.mode.gcm,
          key = new sjcl.cipher.aes ( options.key );