edited globs.js for header/template function