Broadcaster pages

Please check partitipant.js, maybe you have some suggestions on how to re-factor it.
If this file does not load the participant.js why is participant.js have "...case 'initiator'..." in it?