testing pubnub in js