Added support for Cordova 4.0