move script loading in head