Move loaded from domready to window.load