remove document.ready dependency