Try removing the document.ready altogether