Move script to head