changed Plugin to CordovaPlugin