title: JavaScript code in view issue in Laravel
body: <p>I put JavaScript code in a view file name product/js.blade.php, and include it in another view like</p>
  
  <pre><code>{{ HTML::script('product.js') }}
  </code></pre>
  
  <p>I did it because I want to do something in JavaScript with Laravel function, for example</p>
  
  <pre><code>var $path = '{{ URL::action("CartController@postAjax") }}';
  </code></pre>
  
  <p>Actually everything is work, but browser throw a warning message, I want to ask how to fix it if possible.</p>
  
  <p><em><strong>Resource interpreted as Script but transferred with MIME type text/html</em></strong></p>