fix EMCONFIGURE_JS on object outputs; fixes #2994