open window in document.ready