title: jScrollPane. TypeError: $drag[0] is undefined
body: <p>I am trying to implement jScrollPane. But I am getting a number of errors in my console. They are all <code>TypeError: $drag[0] is undefined. maxY = trackHeight - $drag[0].offsetHeight;</code></p>
  
  <p>Scrollpane is recognising the div - it wraps it in jScrollPaneScrollable and removes the standard browser scrollbars - but doesn't apply it's scrollbars or allow me to scroll at all and I get the above mentioned error in my console.</p>
  
  <p>My HTML:</p>
  
  <pre><code>&lt;div id="homePageOffersWindow"&gt;
          &lt;div class="homePageOffersContainer"&gt;
              &lt;div class="homePageOfferBlock"&gt;
                  &lt;h3&gt;HELI HIKES&lt;/h3&gt;
                  &lt;p&gt;Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. &lt;/p&gt;
                  &lt;p&gt;&lt;strong&gt;Save $23 per person&lt;/strong&gt;&lt;/p&gt;
                  &lt;div class="clear"&gt;&lt;/div&gt;
                  &lt;a href="#" class="stdButton whiteBlue"&gt;MORE DETAILS&lt;/a&gt;
              &lt;/div&gt;
              &lt;div class="homePageOfferBlock"&gt;
                  &lt;h3&gt;HELI HIKES&lt;/h3&gt;
                  &lt;p&gt;Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. &lt;/p&gt;
                  &lt;p&gt;&lt;strong&gt;Save $23 per person&lt;/strong&gt;&lt;/p&gt;
                  &lt;div class="clear"&gt;&lt;/div&gt;
                  &lt;a href="#" class="stdButton whiteBlue"&gt;MORE DETAILS&lt;/a&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>The jQuery:</p>
  
  <pre><code>$('#homePageOffersWindow').jScrollPane();
  </code></pre>
  
  <p>The CSS:</p>
  
  <pre><code>#homePageOffersWindow{height: 200px; overflow: auto}
      .homePageOffersContainer{}
      .homePageOfferBlock{margin:0 0 20px;}
      .homePageOfferBlock:last-child{margin-bottom: 0}
  </code></pre>
  
  <p>Any ideas?</p>