added document.ready