modified examples
modified pubnub.lua for corona and moai