added precaution entries on connection state handler.
Merge branch 'master' of github.com:pubnub/javascript