the current API is entirely defined in Rust via wasm-bindgen, but could benefit from JS side helpers, like template strings