Fixed some stuff in the documentReady file