PhoneGap, APIS