expose js api