Unbroke document.ready func