anchor.diff:              }
           }
           var pkceChallenge = document.getElementsByName("code_challenge")[0];
  -
  +        console.log(pkceMethod + " " + pkceChallenge.value);
           if (pkceMethod == "S256") {
               pkceChallenge.value = "<%=code_challenge%>";
           } else if (pkceMethod == "plain") {
               pkceChallenge.value = "<%=code_verifier%>";
           }
       }
  -    //function used to hide and show pkce related inputs in the form
  -    function pkceChangeVisibility() {
  +
  +    function pkceChangeVisibility(jQuery ) {
           if ($("#grantType").val() == "<%=OAuth2Constants.OAUTH2_GRANT_TYPE_CODE%>" &&
                   $("input[name='use_pkce']:checked")[0].value == "yes") {
               $("#pkceMethod").show();
  
positive.code: 
                  MessageDigest digest = MessageDigest.getInstance("SHA-256");
                  byte[] hash = digest.digest(code_verifier.getBytes(StandardCharsets.US_ASCII));
                  code_challenge = new String(new Base64().encode(hash), StandardCharsets.US_ASCII);
                  //set the generated code verifier to the current user session
                  session.setAttribute(OAuth2Constants.OAUTH2_PKCE_CODE_VERIFIER, code_verifier);
  
  
negative.code: >>>>>>> 6b631f0... Fixing playground2 sample.
  =======
  <script type="text/javascript">
      function togglePKCEMethod() {
          var radios = document.getElementsByName('code_challenge_method');
          var pkceMethod = "";
  