added scripts in footer instead of header