.ready() example code added