Use the `CustomEvent` constructor instead of `document.createEvent`.
Make number of channels configurable.
added in configurable channels from agrueneberg
file length fix from: https://github.com/mattdiamond/Recorderjs/commit/1e43dca0a3d754ccea8f1c3f3907fb6ceced3031
adding in event fix from KenPowers