Move scripts loading to footer