echo rewriten by TypeScript