update syntax for onDomReady function