output script in header