convert to cordova plugin with install