YOU MUST HAVE A PUBNUB ACCOUNT TO USE THE API. PubNub for JS Docs have been moved to: http://www.pubnub.com/docs/javascript/javascript-sdk.html