Wait for DomContentLoaded