title: Symfony 2:image paths in javascript file with assetic
body: <p>I'm trying to make a path to an image from a js file in my symfony2 project using asset like this:</p>
  
  <pre><code>   var arr = $('&lt;img src="{{ asset("assets/images/linkArrow.png")}}"&gt;').css({
      position: 'absolute',
      ...
      });
  </code></pre>
  
  <p>but I'm having the following error</p>
  
  <pre><code>    "NetworkError: 404 Not Found - mywebsite.com/bundles/web/app_dev.php/project/1/assets
     /images/linkArrow.png"
  </code></pre>
  
  <p>my image is under the web/assets file.</p>