move script to load after page finishes