Export for nodejs, and smoke test it there