correctly externalize js.Object in interface