moving scripts to head to fix kissmetrics error