remove css counters for theorem environments
wait for dom:loaded before running counters js