anchor.diff:      }
   
       function loadIFrame(pageURL, pageTitle) {
  -      var egainScript = egainScript = document.createElement('script');
  -      egainScript.id = "eGainOffers";
  +      var egainScript = document.createElement('script');
  +      egainScript.id = 'eGainOffers';
         egainScript.src = 'https://mcb.kcom.com/system/Offers.egain?command=GetRulesJS&egofferpageurl=' + pageURL + '&egofferpagetitle=' + pageTitle + '&egofferpatternchecksum=';
         document.body.appendChild(egainScript);
   
  
positive.code:       };
      }
  
      window.addEventListener('message', function (e) {
        if (e.origin.match(/gov\.uk$/)) {
          var message = JSON.parse(e.data);
          if (message.evt === 'load') {
            loadIFrame(message.url, message.title);
          } else if (message.evt === 'accept') {
            click(document.querySelector('.egofr-ribbon-btnOK'));
            signalOfferStatus();
          } else if (message.evt === 'reject') {
            click(document.querySelector('.egofr-ribbon-btnCancel'));
            signalOfferStatus();
          }
        }
      });
  
    </script>
    </body>
  
negative.code:   <body>
    <script>
  
    (function () {
      'use strict';
  
      function isOfferOpen() {
        var ribbonContainer = document.querySelector('#egofr-ribbon-container');
        return ribbonContainer && ribbonContainer.parentNode.style.visibility !== 'hidden';
      }
  
      function signalOfferStatus() {
  