merge my header/template javascript code to main globs and edited my header/template javascript file