Pulled JavaScript requests out of page layouts and into section template