moving script loading from head to footer