Added PhoneGap demo code