title: DatePicker jquery UI not working
body: <p>I am trying to build my personal website using express and want to put a datepicker on one of the page.
  I tried to change the ejs file of this page, however, nothing works.
  I am wondering if it is because that the layout.ejs file exists, and wondering how can I just load jquery-ui in only of the ejs.file? Because I cannot find any related npm to install . Many thanks for answering！XD</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
      &lt;meta charset="utf-8"&gt;
      &lt;link rel="stylesheet" type="text/css" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/themes/smoothness/jquery-ui.css" media="all"&gt;
    &lt;script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"&gt;&lt;/script&gt;
    &lt;script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js"&gt;&lt;/script&gt;
  &lt;/head&gt;  
  &lt;body&gt;
      &lt;script&gt;
         $(function() {
             $( "#datepick" ).datepicker();
         });
      &lt;/script&gt;
  
      &lt;aside class="widget"&gt;
          &lt;p&gt;Date: &lt;input type="text" id="datepick"&gt;&lt;/p&gt;
      &lt;/aside&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>There is another similar question, but I think the answer does not works for me.
  <a href="https://stackoverflow.com/questions/11381289/node-js-datepicker-jquery-ui-not-workinng">node.js - DatePicker jquery UI not workinng</a></p>
  
  <p>When I just use Express and change the index.ejs like the following, it works , but when there are many pages, it seems that it cannot be loaded...</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
  &lt;meta charset="utf-8"&gt;
  &lt;link rel="stylesheet" type="text/css" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/themes/smoothness/jquery-ui.css" media="all"&gt;
  &lt;script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js"&gt;&lt;/script&gt;
  &lt;script&gt;
  $(function() {
  $('#datepick').datepicker();
   });
  &lt;/script&gt;
  &lt;/head&gt;  
  &lt;body&gt;
  
  &lt;aside class="widget"&gt;
  &lt;p&gt;Date: &lt;input type="text" id="datepick"&gt;&lt;/p&gt;
  &lt;/aside&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>