common api generator: JS template added