title: Jquery does not work in 0.10 sails
body: <p>(Sorry for my English) </p>
  
  <p>I am new Sails, and I'm trying to use jquery. Following the steps in this <a href="https://www.youtube.com/watch?v=_wL2cS0GmJQ&amp;list=PLf8i4fc0zJBzLhOe6FwHpGhBDgqwInJWZ&amp;index=10" rel="nofollow">Tutorial of YouTube</a>. But I made ​​it through and as the tutorial is in version 0.9 and I am working on 0.10 where the linker does not exist and could not achieve using jquery. </p>
  
  <hr>
  
  <p>In my loyout.ejs before the </p>
  
  <pre><code>&lt;script src="/js/jquery.min.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>In the view I have this structure </p>
  
  <ul>
  <li>views 
  <ul>
  <li>users
  <ul>
  <li>new.ejs </li>
  </ul></li>
  </ul></li>
  </ul>
  
  <p>Where I'm trying to do this: </p>
  
  <pre><code>&lt;script type="text/javascript"&gt; 
   $(document).ready(function(){
    $('#test').text('hello world'); 
   } 
  &lt;/script&gt; 
  
  &lt;p id="test"&gt; aaa &lt;/p&gt; 
  </code></pre>
  
  <p>And in the controller UsersController.js I have this: </p>
  
  <pre><code>module.exports = {
   new: function(req, res) {
    res.view(); 
   } 
  };
  </code></pre>
  
  <p><strong>What I try to achieve is to change the p element <p> loading page with "hello world" to realize that jQuery is already running.</strong></p>
  
  <hr>
  
  <p>And I get the typical error saying jQuery is not working. </p>
  
  <p>I appreciate your help. 
  Thank you!</p>
  
  <hr>
  
  <p>loyout.ejs</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
    &lt;head&gt;
      &lt;meta charset="utf-8"&gt;
      &lt;meta http-equiv="X-UA-Compatible" content="IE=edge"&gt;
      &lt;meta name="viewport" content="width=device-width, initial-scale=1"&gt;
      &lt;meta name="description" content=""&gt;
      &lt;meta name="author" content=""&gt;
      &lt;link rel="icon" href="images/favicon.ico"&gt;
  
      &lt;title&gt;App sails&lt;/title&gt;
  
      &lt;!-- Bootstrap core CSS --&gt;
      &lt;link href="/styles/bootstrap.min.css" rel="stylesheet"&gt;
      &lt;!-- Bootstrap theme --&gt;
      &lt;link href="/styles/bootstrap-theme.min.css" rel="stylesheet"&gt;
  
      &lt;!-- Custom styles for this template --&gt;
      &lt;link href="/styles/theme.css" rel="stylesheet"&gt;
  
      &lt;!-- Just for debugging purposes. Don't actually copy these 2 lines! --&gt;
      &lt;!--[if lt IE 9]&gt;&lt;script src="../../assets/js/ie8-responsive-file-warning.js"&gt;&lt;/script&gt;&lt;![endif]--&gt;
      &lt;!--&lt;script src="/js/ie-emulation-modes-warning.js"&gt;&lt;/script&gt;--&gt;
  
      &lt;!-- IE10 viewport hack for Surface/desktop Windows 8 bug --&gt;
      &lt;!--&lt;script src="/js/ie10-viewport-bug-workaround.js"&gt;&lt;/script&gt;--&gt;
  
      &lt;!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries --&gt;
      &lt;!--[if lt IE 9]&gt;
        &lt;script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"&gt;&lt;/script&gt;
        &lt;script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"&gt;&lt;/script&gt;
      &lt;![endif]--&gt;
    &lt;/head&gt;
  
    &lt;body&gt;
  
      &lt;script&gt;
      $( document ).ready(function() {
        alert('hola');
      }
      &lt;/script&gt;
  
      &lt;!-- Fixed navbar --&gt;
      &lt;div class="navbar navbar-inverse navbar-fixed-top" role="navigation"&gt;
        &lt;div class="container"&gt;
          &lt;div class="navbar-header"&gt;
            &lt;button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"&gt;
              &lt;span class="sr-only"&gt;Toggle navigation&lt;/span&gt;
              &lt;span class="icon-bar"&gt;&lt;/span&gt;
              &lt;span class="icon-bar"&gt;&lt;/span&gt;
              &lt;span class="icon-bar"&gt;&lt;/span&gt;
            &lt;/button&gt;
            &lt;a class="navbar-brand" href="#"&gt;Bootstrap theme&lt;/a&gt;
          &lt;/div&gt;
          &lt;div class="navbar-collapse collapse"&gt;
            &lt;ul class="nav navbar-nav"&gt;
              &lt;li class="active"&gt;&lt;a href="#"&gt;Home&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="#about"&gt;About&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="#contact"&gt;Contact&lt;/a&gt;&lt;/li&gt;
              &lt;li class="dropdown"&gt;
                &lt;a href="#" class="dropdown-toggle" data-toggle="dropdown"&gt;Dropdown &lt;span class="caret"&gt;&lt;/span&gt;&lt;/a&gt;
                &lt;ul class="dropdown-menu" role="menu"&gt;
                  &lt;li&gt;&lt;a href="#"&gt;Action&lt;/a&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;a href="#"&gt;Another action&lt;/a&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;a href="#"&gt;Something else here&lt;/a&gt;&lt;/li&gt;
                  &lt;li class="divider"&gt;&lt;/li&gt;
                  &lt;li class="dropdown-header"&gt;Nav header&lt;/li&gt;
                  &lt;li&gt;&lt;a href="#"&gt;Separated link&lt;/a&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;a href="#"&gt;One more separated link&lt;/a&gt;&lt;/li&gt;
                &lt;/ul&gt;
              &lt;/li&gt;
            &lt;/ul&gt;
          &lt;/div&gt;&lt;!--/.nav-collapse --&gt;
        &lt;/div&gt;
      &lt;/div&gt;
  
        &lt;%- body %&gt;
  
      &lt;!--SCRIPTS--&gt;
  &lt;!--
  &lt;script src="/js/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script src="/js/dependencies/sails.io.js"&gt;&lt;/script&gt;
  
  &lt;script src="/js/jquery.validate.min.js"&gt;&lt;/script&gt;
  &lt;script src="/js/bootstrap.min.js"&gt;&lt;/script&gt;
  &lt;script src="/js/customValidate.js"&gt;&lt;/script&gt;
  &lt;script src="/js/docs.min.js"&gt;&lt;/script&gt;
  &lt;script src="/js/ie-emulation-modes-warning.js"&gt;&lt;/script&gt;
  &lt;script src="/js/ie10-viewport-bug-workaround.js"&gt;&lt;/script&gt;--&gt;
  &lt;!--SCRIPTS END--&gt;
  
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>