changing headers to load JS at end