Changing deprecated Plugin class to CordovaPlugin.