diff --git a/js/recaptcha_v3.js b/js/recaptcha_v3.js
index f86c92a..43a78f1 100755
--- a/js/recaptcha_v3.js
+++ b/js/recaptcha_v3.js
@@ -53,7 +53,7 @@
     attach: function (context) {
       $('.recaptcha-v3-token', context).once('recaptcha-v3-token').each(function (element) {
        
-        updateTokenElement(element);
+        updateTokenElement(this);

         // Update the recaptcha tokens every 90 seconds.
         // This seems to be the most robust way to always have valid recaptcha
@@ -63,11 +63,11 @@
         // A recaptcha token has a maximum lifetime of 120 seconds.
         // https://developers.google.com/recaptcha/docs/v3
         var interval = setInterval(function () {
-          if (!element) {
+          if (!this) {
             clearInterval(interval);
           }
           else {
-            updateTokenElement(element);
+            updateTokenElement(this);
           }
         }, 90000);
       });