add js pubnub sockets