change js function interface