fix loading issue by moving script to footer