api_generator: module_js_api.cpp