title: Laravel 4 blade syntax within my javascript files
body: <p>My home page had some inline javascript that was mixed up with some blade syntax e.g.</p>
  
  <pre><code>    &lt;script type="text/javascript"&gt;
          @if(Auth::user())
              if(path.indexOf('/user/' + {{Auth::user()-&gt;id}} ) != -1) {
                      $( "#tabs" ).tabs();
              };
          @endif
      &lt;/script&gt;
  </code></pre>
  
  <p>It worked until I wanted to move the javascript to an external file.js. I got error whenever blade syntax was added. Is there a way I can fuse blade syntax in my javascript files.js? I tried renaming to file.blade.js with no luck...</p>