Check .ready function