Adding multichannel capabilities

Now the Javascript is able to add up to 8 channels