StackMob custom code for pubnub demo with HTML5 UI for realtime QA pie chart