Move script to footer