PhoneGap 3.x compatibility