CB-6506 RTC: Add support for OSX

note: osx.js is copied from ios.js