Update ffi dep in js implementation