Add javascript loading to the header