moving script tag to header