fixed scrip loading  in the header