Rust-like communication channels for JavaScript