move header to js