Add javascript-side interface and modify the compilation instruction