       var output        = PUBNUB.$('output');
        var cipher_key    = PUBNUB.$('cipher_key')
                                  .value.split(/\s/).join('');

        var secure_pubnub = PUBNUB.secure({
            publish_key   : publish_key,
            subscribe_key : subscribe_key,
            origin        : origin,
            ssl           : true,
            cipher_key    : cipher_key
        });

        output.count = 1;
        secure_pubnub.subscribe({
            channel  : channel,
        