Copy/paste functions from main.js into separate files.
Merge branch 'apprtc-refactor2' into apprtc-refactor3
Cleanup JSHint comments.
Fix apparent type with ga.js.