anchor.diff:      }
   
       function loadIFrame(pageURL, pageTitle) {
  -      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);
  +      var src = 'https://mcb.kcom.com/system/Offers.egain?command=GetRulesJS&egofferpageurl=' + pageURL + '&egofferpagetitle=' + pageTitle + '&egofferpatternchecksum=';
  +      $.getScript(src, function () {
  +        setInterval(signalOfferStatus, 1000);
  +      }).fail(function () {
  +        sendMessage({ evt: 'error' });
  +      });
   
  -      egainScript.onload = function () {
  -        setInterval(signalOfferStatus, 1000);
  -      };
  -      egainScript.onerror = function () {
  -        sendMessage({ evt: 'error' });
  -      };
       }
   
  -    window.onmessage = function (e) {
  +    function handleMessage(e) {
         var message;
  +      e = e.originalEvent;
         if (e.origin.match(/gov\.uk$/) || e.origin.match(/alphagov\.co\.uk$/)) {
           message = JSON.parse(e.data);
           if (message.evt === 'load') {
  
positive.code: <html>
    <head>
      <meta charset="utf-8"/>
    </head>
    <body>
    <script>
  
negative.code:           signalOfferStatus();
          }
        }
      }
  
      $(window).on('message', handleMessage);
  
    })();
  
  