Plugin changed for using with latest version of Cordova