move scripts to <head>