anchor.diff:                      .text(newText)
                       .click(function() {
                               $.ajax({
  -                                type: "POST", //newType,
  -                                url: newHref,
  +                                type: "POST",
  +                                url: newUrl,
                                   success: function() {
  -                                    // alert("Success!");
  -                                    registerInterest()
  -                                    // setBtnFollowing(newDesired);
  +                                    setBtnFollowing(newDesired);
                                   },
                                   error: riError
                               });
  
positive.code:                     }
                  });
  
  
  
                  registerInterest();
  
              });
  
              function loadCsRf() {
                  var token = $("meta[name='_csrf']").attr("content");
                  var header = $("meta[name='_csrf_header']").attr("content");
                  $(document).ajaxSend(function(e, xhr, options) {
                      xhr.setRequestHeader(header, token);
                  });
              }
  
  
  
              function registerInterest() {
                  loadCsRf();
                  if (isLoggedIn) {
                      if (isFollowing) {
                          setBtnFollowing("following");
                      } else {
                          setBtnFollowing("notFollowing");
                      }
                  } else {
                      // $('#btn-follow')
                      setBtnFollowing("notLoggedIn");
                  }
  
                  return true;
              }
  
              function setBtnFollowing(desired) {
                  var newHref;
                  var newAddClass;
                  var newTitle;
                  var newText;
                  var newType;
                  var newDesired;
  
                  switch(desired) {
                      case "following":
                          newHref = "${paBaseUrl}/unregistration/gene/${acc}";
                          // newHref = "#";
                          newAddClass = "btn-outline-secondary";
                          newTitle = "You are following ${gene.markerSymbol}. Click to stop following.";
                          newText = "Stop following";
                          newType = "POST";
                          newDesired = "notFollowing";
                          break;
  
                      case "notFollowing":
                          newHref = "${paBaseUrl}/registration/gene/${acc}";
                          // newHref = "#";
                          newAddClass = "btn-primary";
                          newTitle = "Click to follow ${gene.markerSymbol}";
                          newText = "Follow";
                          newType = "POST";
                          newDesired = "following";
                          break;
  
                      case "notLoggedIn":
                          <%--newHref = "${paBaseUrl}/genesAuth/${acc}";--%>
                          <%--newAddClass = "btn-primary";--%>
                          <%--newTitle = "Log in to My genes";--%>
                          <%--newText = "Log in to follow";--%>
                          <%--newType = "GET";--%>
                          <%--// newDesired = "";--%>
                          break;
                  }
  
                  $('#btn-follow')
                      .attr('href', newHref)
                      .attr('title', newTitle)
                      .removeClass('btn-primary')
                      .removeClass('btn-outline-secondary')
  
negative.code:                     <h2 style="float: left">Gene: ${gene.markerSymbol}</h2>
                      <h2>
                          <a
                                  href="${paBaseUrl}/genesAuth/${acc}"
                                  class="btn btn-primary"
                                  id="btn-follow"
                                  style="float: right"
                                  title="Log in to My genes"
                          >
                              Log in to follow
                          </a>
                          <a href="${cmsBaseUrl}/help/gene-page/" target="_blank">
                              <i class="fa fa-question-circle" style="float: right; color: #212529; padding-right: 10px;"></i></a>
                      </h2>
  