Compatible with PhoneGap 2.7.0