move scripts to separate include so we can include them across layouts even if the footer isn't there