title: Is there a correct way to add custom Javascript to an ASP.NET MVC 5 page?
body: <p>At the moment, I have added the jQuery source file to my ASP.NET project's Scripts folder. In the _Layout.cshtml page, I have included ~/Scripts/jquery-2.1.1.min.js. Right now, I can include jQuery code on every page I make this way:</p>
  
  <pre><code>If this page shows a popup I was succesfull.
  
  &lt;script&gt;
  $(document).ready(function(){
  alert("works!");
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>However, I don't want to include a full script in every view. I would prefer to create a seperate JS file, put it in my Scripts folder, and then include it using Razor.</p>
  
  <pre><code>@{ 
      //Razor Magic inserting Javascript method!
   }
  
  If this page shows a popup I was succesfull.
  </code></pre>
  
  <p>How do I do this? And is it the "correct" way to include a unique Javascript file for a single page?</p>