changed js to work with different numbers of channels. mixing example done; some cheating on c++ maxiMix stuff