title: pagination.js is not working properly in my javascript project
body: <p>I want to use the jquery pagination plugin from <a href="https://pagination.js.org" rel="nofollow noreferrer">pagination.js.org</a>.
  I used the following code to include this plugin.</p>
  <pre><code>    &lt;script type=&quot;text/javascript&quot; src=&quot;https://code.jquery.com/jquery-2.2.4.min.js&quot;&gt;&lt;/script&gt;
      &lt;script src=&quot;https://cdnjs.cloudflare.com/ajax/libs/paginationjs/2.0.7/pagination.js&quot;&gt;&lt;/script&gt;
      &lt;script type=&quot;text/javascript&quot; src=&quot;https://cdnjs.cloudflare.com/ajax/libs/bootbox.js/5.5.2/bootbox.min.js&quot;&gt;&lt;/script&gt;
  </code></pre>
  <p>And this is the HTML code.</p>
  <pre><code>&lt;div class=&quot;container&quot;&gt;
      &lt;div class=&quot;row&quot;&gt;
          &lt;div class=&quot;data-container&quot;&gt;&lt;/div&gt;
          &lt;div class=&quot;pagination-container&quot;&gt;&lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  <p>Then I created pagination in another javascript file.</p>
  <pre><code>function template(data) {
      let html = '&lt;ul&gt;';
      $.each(data, function(index, item){
          html += '&lt;li&gt;'+ item +'&lt;/li&gt;';
      });
      html += '&lt;/ul&gt;';
      return html;
  }
  
  $(document).ready(function() {
      $('.pagination-container').pagination({
          dataSource: [1, 2, 3, 4, 5, 6, 7, 8, 9, 2, 3, 4, 5, 6, 7, 100],
          callback: function(data, pagination) {
        // template method of yourself
        let html = template(data);
        $('.data-container').html(html);
      }
    });
  });
  </code></pre>
  <p>But javascript error occurred when execution.</p>
  <pre><code>teachers.js:11 Uncaught TypeError: $(...).pagination is not a function
      at HTMLDocument.&lt;anonymous&gt; (teachers.js:11)
      at i (jquery-2.2.4.min.js:2)
      at Object.fireWith [as resolveWith] (jquery-2.2.4.min.js:2)
      at Function.ready (jquery-2.2.4.min.js:2)
      at HTMLDocument.J (jquery-2.2.4.min.js:2)
  </code></pre>
  <p>It acts like the library was not loaded properly but I cannot figure it out.</p>