title: Views in play-framework 2.1 not handling javascript
body: <p>I've come into a wall : Basically, Javascript doesn't seem to be working in my play pages.</p>
  
  <p>So I have a view <code>main.scala.html</code> as a template for other views.
  This file looks like that :</p>
  
  <pre><code>@(page : String, title: String)(content: Html)
  
  &lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
      &lt;title&gt;@title&lt;/title&gt;
      &lt;link rel="stylesheet" media="screen" href="@routes.Assets.at("stylesheets/bootstrap.min.css")"&gt;
      &lt;link rel="stylesheet" media="screen" href="@routes.Assets.at("stylesheets/main.css")"&gt;
      &lt;link rel="shortcut icon" type="image/png" href="@routes.Assets.at("images/favicon.png")"&gt;
      &lt;script src="@routes.Assets.at("javascripts/jquery-1.7.1.min.js")" type="text/javascript"&gt;&lt;/script&gt;
      &lt;script src="@routes.Assets.at("javascripts/bootstrap.min.js")" type="text/javascript"&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;!--some stuff--&gt;
  @content
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>So I tried putting a simple <code>&lt;a href="#" onclick="alert('thing')"&gt;thing&lt;/a&gt;</code> in the body of the views.</p>
  
  <p>-First in the main.scala.html template</p>
  
  <p>-Then in a view that used this template</p>
  
  <p>-Finally in a thing.html, with no links what so ever with Play! Framework, that I opened in my browser:</p>
  
  <pre><code>&lt;html lang="en"&gt;
  &lt;head&gt;
      &lt;title&gt;title&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;a href="#" onclick="alert('truc')"&gt;truc&lt;/a&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>Only the third option return the wanted result : A popup with <code>thing</code> in it.</p>
  
  <p>My question is : Why is my javascript not handled by play? Do I have to "<code>import</code>" some global javascript feature in order to use it?</p>
  
  <p>Thanks for your help, if you need more info, tell me.</p>