PhoneGap API study