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