fixed IE localStorage missing error in JS Modern API.
fixed IE localStorage missing error in JS Modern API.

jamesward/pubnub-api,jamesward/pubnub-api,jamesward/pubnub-api,jamesward/pubnub-api,jamesward/pubnub-api,jamesward/pubnub-api,jamesward/pubnub-api,jamesward/pubnub-api,jamesward/pubnub-api