Added document.ready to test jquery functions