Add metascripts to header