title: ASP.NET MVC - Returning JavaScriptResult doesn't work
body: <p>If I try to return some JavaScript from my Controller like this:</p>
  
  <pre><code>public ActionResult DoSomething()
  {       
      return JavaScript("alert('Hello world!');");            
  }
  </code></pre>
  
  <p>I do not view the alert message in my browser, but I get a download request for a .js script from the page named as the action (register.js in my case). What is wrong?</p>