add webrtc js (index2.js,whammy.js), refactoring webrtc