script and footer updates