Relocated script dependencies to a Razor section.

The section is only included in views that require the scripts - that is,
ones who have the pagedown editor - this reduces page weight.