title: How to get static files in javascript?
body: <p>someone who can help me get the url of static files in javascript.</p>
  <p>I have tried this:
  I have a variable that has the path of my file and I want to use it as an argument as follows:</p>
  <pre><code>function(json) {
       if (json.status=='1') {
           var file = &quot;{% static 'path' %}&quot;.replace(/'path'/, json.url_file); 
       }
  }
  </code></pre>
  <p>I have also tried it like this</p>
  <pre><code>function(json) {
       if (json.status=='1') {
           var file = `{% static '${json.url_file}' %}`; 
       }
  }
  </code></pre>