title: Materialize: Uncaught TypeError: $(...).scrollSpy is not a function
body: <p>I am using the <a href="http://materializecss.com/" rel="nofollow">Materialize</a> framework, and for the life of me can not figure out why the scrollspy plugin is not working for me. My markup or css certainly isn't the issue - I'm certain it's right.</p>
  
  <p>Console is showing:</p>
  
  <blockquote>
    <p>Uncaught TypeError: $(...).scrollSpy is not a function</p>
  </blockquote>
  
  <p>And references the line where I initialize the plugin: </p>
  
  <pre><code>$( document ).ready(function() {
      $('.scrollspy').scrollSpy();
  });
  </code></pre>
  
  <p>I was under the impression that the plugin "came with" materialize's JS, but even when I include scrollspy.js myself in my header, I'm still getting the error.</p>
  
  <p>What am I missing?</p>