change js api to executable