Bug 19778: Move template JavaScript to the footer: Serials, part 4