moved js out of footer