move script after render html element