Fix to work on Chrome > 28

Changed the polyfill adapt.js according to https://apprtc.appspot.com/
Modify a bit main.js