move scripts out of head