move script to footer