script moved to footer