title: How to include JavaScript files into twig template using Symfony2
body: <p>I can easily include CSS files into my twig template like this:</p>
  
  <pre><code>{% block stylesheets %}
      &lt;link rel="stylesheet" href="{{ asset('bundles/user/css/bootstrap.min.css') }}"/&gt;
      &lt;link rel="stylesheet" href="{{ asset('bundles/user/css/bootstrap-theme.min.css') }}"/&gt;
      &lt;link rel="stylesheet" href="{{ asset('bundles/user/css/main.css') }}"/&gt;
  {% endblock %}
  </code></pre>
  
  <p>But for my JavaScript files</p>
  
  <pre><code>{% block javascripts %}
      &lt;script src="{{ asset('bundles/user/js/jquery-1.11.3.min.js') }}"&gt;&lt;/script&gt;
      &lt;script src="{{ asset('bundles/user/js/bootstrap.min.js') }}"&gt;&lt;/script&gt;
  {% endblock %}
  </code></pre>
  
  <p>The approach does not work. I tried to use <code>assetics</code> too, but that didn't work either.</p>