I don't believe a Partial View can set sections to be used in the layout page :(
It looks like there are no nice solutions to this - you could include two partials (one for script, one for content):
@Html.RenderAction("PartialView", "PartialController")