Compatibility with PhoneGap/Cordova 0.3.X