add required pubnub javascripts