put js file in header !important pass $session in getHeader function