move script tag to post edit form