    console.log('Error', err);
          return;
        }

        // Add the nonce to the form and submit
        document.querySelector('#nonce').value = payload.nonce;
          form.submit();
        });
      });
    });
    /*]]>*/
  </script>
  <script src="/javascript/demo.js" th:src="@{/javascript/demo.js}"></script>
</body>
</html>
