I have the following Asp.Net MVC 4 razor code at the end of the file.
....
@section Scripts {
@Scripts.Render(\"~/bundles/jqueryval\")
}
No need to move anything. Just where you have the script in the view put the script inside a section scripts like so assuming you declared a section scripts in _Layout file:
@section scripts{
}
you can do same technique for a section with additional CSS on each page, declare section CSS or Head or whatever name then add @section name{ } at the top of the view before the markup