removing unused code from rtc_library.js