add JS common API spec