title: KnpSnappyBundle not executing javascript
body: <p>I am using Symfony 3.1.2 with KnpSnappyBundle 1.4 and I followed everything the doc says here (to generate a pdf) : <a href="https://github.com/KnpLabs/KnpSnappyBundle" rel="nofollow noreferrer">https://github.com/KnpLabs/KnpSnappyBundle</a></p>
  
  <p>But it's not working. The pdf is generated but the javascript is not executed ...</p>
  
  <p>Here is my Symfony controller : </p>
  
  <pre><code>/**
   * @Route("/report")
   */
  public function report(Request $request)
  {
      $idTown = 1;//$request-&gt;request-&gt;get("idTown"); 
  
      $html = $this-&gt;renderView("@AppBundle/Resources/views/report.html.twig", array
      (
          "idTown" =&gt; $idTown
      ));
  
      return new Response
      (
          $this-&gt;get('knp_snappy.pdf')-&gt;getOutputFromHtml($html,
                  array(
                      'enable-javascript' =&gt; true,
                      'no-stop-slow-scripts' =&gt; true,
                      'javascript-delay' =&gt; 5000)
          ),
          200,
          array(
              'Content-Type'          =&gt; 'application/pdf',
              'Content-Disposition'   =&gt; 'attachment; filename="file.pdf"'
          )
      );
  }
  </code></pre>
  
  <p>Here is the the HTML file (<code>report.html.twig</code>) :</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
      &lt;script
            src="https://code.jquery.com/jquery-2.2.4.min.js"
            integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44="
            crossorigin="anonymous"&gt;&lt;/script&gt;
  
      &lt;script&gt;
          $("body").html("okkkkkkkkkkkkkkkkkkkkkkk");
      &lt;/script&gt;
  
      &lt;style&gt;
          html
          {
              background-color : red;
          }
      &lt;/style&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p></p>
  
  <p>When I go to the url <code>localhost/report</code>, I receive a download prompt for a red page with no text in it. For what it's worth, I also tried with native javascript (instead of jQuery) and it didn't work neither. But you see, the CSS is executed ... </p>
  
  <p>Help please, thanks.</p>