setTimeout adjustment on animations