Changed scripts to footer