moving scripts back to the head