Binary to ascii mapping in JavaScript
I suggest splitting:


Converting binary to ascii
Concatenating




After defining binaryToNumber and add. the final code will look much simpler:

var result = chars.map(binaryToNumber).reduce(add)