checking if scripts in footer run