attached RTC to the window object