move email script in to default HEAD section