Bug 19754: Move template JavaScript to the footer: Acquisitions, part 2