title: External JavaScript not working when it has window.refresh function
body: <p>So I have a Visual Studio ASP.NET MVC  project. I have a bunch of duplicate javascript in the Views within CSHTML files and I'm trying to externalize all the duplicate code in a common JS file.</p>
  
  <p>The problem is whenenever ANNY function within the external file has this code</p>
  
  <pre><code>window.refresh("@Url.Action("","")"); 
  </code></pre>
  
  <p>then the entire external file doesn't work anymore.</p>
  
  <p>Does anyone know why this is happening?</p>