making better use of js/ interop