added comments for using this.ready()