title: Part of jQuery code is not working with .ejs file
body: <p>I am using <code>.ejs</code> with <code>nodeJS</code>.
  <strong>Part</strong> of my <code>jQuery</code> code is not working. As well, it <strong>does not throw any errors in console.</strong></p>
  <p><code>jQuery</code> is connected to <code>index.ejs</code> in the end of the document like this:</p>
  <pre><code>&lt;script src=&quot;https://code.jquery.com/jquery-3.6.0.min.js&quot;&gt;&lt;/script&gt;
  &lt;script type=&quot;text/javascript&quot; src=&quot;https://cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.min.js&quot;&gt;&lt;/script&gt;
  &lt;script src=&quot;/js/app.js&quot;&gt;&lt;/script&gt;
  </code></pre>
  <p>By clicking here:</p>
  <pre><code>&lt;ul class=&quot;nav__right&quot;&gt;
       &lt;li class=&quot;nav__link&quot; id=&quot;delivery-link&quot;&gt;Доставка&lt;/li&gt;
       &lt;li class=&quot;nav__link nav__link-ml&quot; id=&quot;firms-link&quot;&gt;Фирмам&lt;/li&gt;
       &lt;li class=&quot;nav__link nav__link-ml&quot; id=&quot;contacts-link&quot;&gt;Контакты&lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  <p>I wish to slide down to blocks which have <strong>id's</strong> as well.</p>
  <p><code>jQuery</code> code looks like this:</p>
  <pre><code>$(&quot;#logo-link&quot;).click(function() {
      window.scrollTo({ top: 0, behavior: 'smooth' });
  }); // This part is working!
  
  $(&quot;#about-link&quot;).click(function() {
      $('html,body').animate({
          scrollTop: $(&quot;#about&quot;).offset().top-navHeight},
          'slow');
  });
  
  $(&quot;#products-link&quot;).click(function() {
      $('html,body').animate({
          scrollTop: $(&quot;#products&quot;).offset().top-navHeight},
          'slow');
  });
  
  $(&quot;#find-link&quot;).click(function() {
      $('html,body').animate({
          scrollTop: $(&quot;#find&quot;).offset().top-navHeight},
          'slow');
  });
  </code></pre>
  <p>Part which goes to top is working, <strong>other are not working</strong>.
  I have tested the same code with basic .html file and it works perfectly.
  I guess, issue appeared due to <code>.ejs</code>, however, absolutely cannot figure this out.</p>
  <p>Thank you in advance.</p>