Refactor js interop to allow to export methods
to react spec
Example of exporting methods