title: Intercoolerjs on-success not calling js function
body: <p>I'm using intercoolerjs to send a delete request and, if successfull, hide a container. </p>
  
  <pre><code>&lt;a href="#" ic-delete-from="/foo" ic-on-complete="hide_deleted_product({{$product-&gt;id}})"&gt;
     test
  &lt;/a&gt;
  </code></pre>
  
  <p>This is my Js </p>
  
  <pre><code>function hide_deleted_product(id){
    var product = "#product_"+id;
    $(product).addClass('hidden');
  }
  </code></pre>
  
  <p>it works fine deleting the item, however, it returns "undefined function hide_deleted_product" in the console. I'm sure everything is fine with the rest of my js code, yet this function won't work. </p>