Go's channels implemented in JavaScript