Fixed onDomReady scope