title: Materialize material_select() not working before refresh in Meteor app
body: <p>I'm using following select in a template in my Meteor project</p>
  
  <pre><code>    &lt;div class="input-field"&gt;
          &lt;select name="color" id="color"&gt;
              &lt;option value="%23B1365F"&gt;Pink&lt;/option&gt;
              &lt;option value="%232952A3"&gt;Blue&lt;/option&gt;
              &lt;option value="%23711616"&gt;Red&lt;/option&gt;
              &lt;option value="%2328754E"&gt;Green&lt;/option&gt;
              &lt;option value="%23BE6D00"&gt;Orange&lt;/option&gt;
              &lt;option value="%23113F47"&gt;Sea Blue&lt;/option&gt;
              &lt;option value="%235229A3"&gt;Purple&lt;/option&gt;
              &lt;option value="%23528800"&gt;Olive&lt;/option&gt;
              &lt;option value="%2388880E"&gt;Gold&lt;/option&gt;
              &lt;option value="%23333333"&gt;Black&lt;/option&gt;
          &lt;/select&gt;
          &lt;label for="color"&gt;Colour: &lt;/label&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>With the following in my js-file to initialize the Materialize select dropdown</p>
  
  <pre><code>    if (Meteor.isClient) {
        Template.layout_settings.onRendered(function () {
          $('select').material_select();
        });
      }
  </code></pre>
  
  <p>However, the select dialog only works/shows after a refresh, before a refresh I get following error in console:</p>
  
  <pre><code>    TypeError: $(...).material_select is not a function
        at null.&lt;anonymous&gt; (settings.js:48)
        at template.js:116
        at Function.Template._withTemplateInstanceFunc (template.js:457)
        at fireCallbacks (template.js:112)
        at null.&lt;anonymous&gt; (template.js:205)
        at view.js:107
        at Object.Blaze._withCurrentView (view.js:538)
        at view.js:106
        at Object.Tracker._runFlush (tracker.js:497)
        at onGlobalMessage (setimmediate.js:102)
  </code></pre>
  
  <p>After a refresh it works perfectly fine, does anyone has any idea why this happens?
  Couldn't find anything on google.</p>
  
  <p><a href="http://imgur.com/bEvqpE5" rel="nofollow">Before refresh</a></p>
  
  <p><a href="http://imgur.com/GoZBar2" rel="nofollow">After refresh</a></p>
  
  <p>Thanks in advance!</p>