move scripts to footer