Bug 19656: Move rotating collections templates JS to the footer