create JsGenerator