fix issue #31 "rtc.on('ready') fires too soon"