PubNub sample code added

Hey, this is Tomomi from PubNub! 
I created a sample demo using PubNub JavaScript APIs.