(function() {
  /* globals define, Intercom */

  function generateModule(name, values) {
    define(name, [], function() {
      'use strict';

      return values;
    });
  }

  function setupIntercom(config) {
    var ic = window.Intercom || null;
    if (typeof ic === 'function') {
      ic('reattach_activator');
      ic('update', {});
    } else {
      var d = document;
      var i = function() {
        i.c(arguments);
      };
      i.q = [];
      i.c = function(args) {
        i.q.push(args);
      };
      window.Intercom = i;

      var s = d.createElement('script');
      s.type = 'text/javascript';
      s.async = true;
      s.src = `https://widget.intercom.io/widget/${Ember.get(config, 'intercom.appId')}`;
      var [x] = d.getElementsByTagName('script');
      x.parentNode.insertBefore(s, x);
    }
  }

  generateModule('ember-intercom-io', {
    'setupIntercom': setupIntercom
  });
})();

@@ -364,16 +364,23 @@
 var d = 
+window.
 document
@@ -658,17 +658,17 @@
 s.src = 
-%60
+'
 https://
@@ -697,10 +697,12 @@
 get/
-$%7B
+' + 
 Embe
@@ -736,10 +736,8 @@
 Id')
-%7D%60
 ;%0A  
@@ -748,11 +748,9 @@
 var 
-%5Bx%5D
+x
  = d
@@ -772,32 +772,35 @@
 agName('script')
+%5B0%5D
 ;%0A      x.parent

Use es5 for node.js code, to make phantom happy