moved scripts to head.