moved scripts into head