fixed the jquery document.Ready function