moving scripts to footer