moves scripts to <head>