cordova 3.x.x compatibility