Moved scripts to head