title: <script> code in Meteor runs fine but exact code moved to .onRendered() doesn't
body: <p>I'm really confused about this. I'm using Cincopa to create and embed image galleries onto my Meteor site.</p>
  
  <p>This works. The gallery shows up on page load.:</p>
  
  <pre><code>&lt;template name="test"&gt;
  
    &lt;!-- Image Gallery Embed Code --&gt;_
  
    &lt;div id="cp_widget_a718e3a7-4a35-4f13-b14e-299cc73c6ecb"&gt;...&lt;/div&gt;
  
    &lt;script type="text/javascript"&gt;
    var cpo = [];
    cpo["_object"] = "cp_widget_a718e3a7-4a35-4f13-b14e-299cc73c6ecb";
    cpo["_fid"] = "A4IAkTttPOWL";
    var _cpmp = _cpmp || [];
    _cpmp.push(cpo);
    (function() {
      var cp = document.createElement("script");
      cp.type = "text/javascript";
      cp.async = true;
      cp.src = "//www.cincopa.com/media-platform/runtime/libasync.js";
      var c = document.getElementsByTagName("script")[0];
      c.parentNode.insertBefore(cp, c);
    })();
    &lt;/script&gt;
  
    &lt;!-- Image Gallery Embed Code --&gt;_
  
  &lt;/template&gt;
  </code></pre>
  
  <p>This does not. Nothing but the empty <code>&lt;div&gt;</code> with <code>...</code> shows up. There are no error messages.</p>
  
  <pre><code>&lt;template name="test"&gt;
  
    &lt;div id="cp_widget_a718e3a7-4a35-4f13-b14e-299cc73c6ecb"&gt;...&lt;/div&gt;
  
  &lt;/template&gt;
  </code></pre>
  
  <p>JS:</p>
  
  <pre><code>Template.test.onRendered(function(){
  
    var cpo = [];
    cpo["_object"] = "cp_widget_a718e3a7-4a35-4f13-b14e-299cc73c6ecb";
    cpo["_fid"] = "A4IAkTttPOWL";
    var _cpmp = _cpmp || [];
    _cpmp.push(cpo);
    (function() {
      var cp = document.createElement("script");
      cp.type = "text/javascript";
      cp.async = true;
      cp.src = "//www.cincopa.com/media-platform/runtime/libasync.js";
      var c = document.getElementsByTagName("script")[0];
      c.parentNode.insertBefore(cp, c);
    })();
  
  });
  </code></pre>
  
  <p>It's the exact same code...</p>
  
  <p>Am I missing something with how Meteor loads things? </p>