commonAPI: align _js_wrap and _ruby_wrap