moving script block into body element