Switch between webrtc and flash, use coffeescript