Working with the lastest cordova

Plugin updated to work with the last cordova