support some low-level js interop