Example of AngularJS integration with PubNub