title: jQuery not working with cakephp 2.0
body: <p>I am currently working on a project where i wanna implement jQuery to cakephp 2.0.</p>
  
  <p>I have followed the guide at: 
  <a href="http://book.cakephp.org/2.0/en/core-libraries/helpers/js.html" rel="nofollow">http://book.cakephp.org/2.0/en/core-libraries/helpers/js.html</a></p>
  
  <p>i.e. I have downloaded jquery-1.8.1.js (also tried the .min.js file) and put it in app/webroot/js.
  In the default layout file i have added</p>
  
  <pre><code>echo $this-&gt;Html-&gt;script('jquery');
  </code></pre>
  
  <p>and just before the end of the body tag i have added</p>
  
  <pre><code>echo $this-&gt;Js-&gt;writeBuffer();
  </code></pre>
  
  <p>In my controller i have added</p>
  
  <pre><code>public $helpers = array('Js' =&gt; array('Jquery'));
  </code></pre>
  
  <p>When i reload my page and check the source code I see that the link to the jQuery file works correctly. 
  But when I try to add a simple script (just adding an alert) like this (in the view file):</p>
  
  <pre><code>$alert = $this-&gt;Js-&gt;alert('Hey there');
  </code></pre>
  
  <p>nothing happens... </p>
  
  <p>Any kind person out there that might have any suggestion to what I do wrong? 
  I have spent hours looking looking at the internet and following different guides but still can get a simple thing as an alert working.</p>