move script tag to head