Move script tags outside of footer div