JavaScript FFI enhancements