move scripts to the footer