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:     </tr>
  </table>
  <script type="text/javascript">
      //method used to toggle the corresponding values of the pkce method in the form input
      function togglePKCEMethod() {
          var radios = document.getElementsByName('code_challenge_method');
          var pkceMethod = "";
  
negative.code:     }
  
      $( document ).ready(pkceChangeVisibility);
      //set form change handler.
      $("form[name='oauthLoginForm']").change(pkceChangeVisibility)
  </script>
  <%
  