Fix creating new objects with JS FFI