  'use strict';

  moj.Modules.SmartSurvey = {
    init: function() {
      if (window.SMART_SURVEY_CID == "") {
        return;
      }
      window._ssq={'cid':window.SMART_SURVEY_CID};
      var ss=document.createElement('script');
      ss.type='text/javascript';
      ss.async=true;
      ss.src=('https:'==document.location.protocol?'https://':'http://')+'www.smartsurvey.co.uk/s/popup/'+window._ssq.cid+'/js/';var s=document.getElementsByTagName('script')[0];
      document.body.appendChild(ss);
    }
  };

  'use strict';

  moj.Modules.SmartSurvey = {
    init: function() {
      window._ssq={'cid':window.SMART_SURVEY_CID};
      var ss=document.createElement('script');
      ss.type='text/javascript';
      ss.async=true;
      ss.src=('https:'==document.location.protocol?'https://':'http://')+'www.smartsurvey.co.uk/s/popup/'+window._ssq.cid+'/js/';var s=document.getElementsByTagName('script')[0];
      document.body.appendChild(ss);
    }
  };

--- 
+++ 
@@ -2,6 +2,9 @@
 
   moj.Modules.SmartSurvey = {
     init: function() {
+      if (window.SMART_SURVEY_CID == "") {
+        return;
+      }
       window._ssq={'cid':window.SMART_SURVEY_CID};
       var ss=document.createElement('script');
       ss.type='text/javascript';
Check if SMART_SURVEY_CID is set before include js for survey
