append scripts to head