update onDomReady event