added export for js method