created a cordova plugin