I have asp.net mvc project with knockout.js so my index page is getting really huge because of lots of javascript functionality. I'd love to move js code into a separate file but it does not allow me to apply it to the most of the code because if I have something like
$.ajax({
url: "@Html.Raw(@Url.Action("Load"))",
Then it pops up a error if I move this part of the code into another file. Please advise how can I resolve this issue?