changes to work with cordova 4.0.0