ReferenceError: $ is not defined although jQuery was added in Layout.jade
<p>I am getting this error when trying to run some basic JavaScript code in Node.js</p>

<pre><code> ReferenceError: $ is not defined                                                                                                                                                                                                       
        at Object.&lt;anonymous&gt; (/home/ubuntu/workspace/nodetest2/public/javascripts/global.js:5:1)                                                                                                                                          
        at Module._compile (module.js:409:26)                                                                                                                                                                                              
        at Object.Module._extensions..js (module.js:416:10)                                                                                                                                                                                
        at Module.load (module.js:343:32)                                                                                                                                                                                                  
        at Function.Module._load (module.js:300:12)                                                                                                                                                                                        
        at Module.runMain [as _onTimeout] (module.js:441:10)                                                                                                                                                                               
        at Timer.listOnTimeout (timers.js:92:15)            
</code></pre>

<p>In my Layout.jade I have added </p>

<pre><code>     script(src='http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js')
     script(src='/public/javascripts/global.js')
</code></pre>

<p>Thank you for the help.</p>