changes document.ready call