common API preliminary sample of generated js added