remove some unnecessary uses of JS interop