PhoneGap sample