update the js interop code