Update for PhoneGap 3