Error handling

Deep refactoring accomplished, ReguireJS integrated into the participant and broadcaster pages.
The base class for these two pages is located in base-broadcaster.js
Is there a way to do hard typing in javascript?