move script to <head>