[TIDOC-1899] Port JSCA generator to JavasScript