Fix dependencies
Do not check DOM ready in AMD run