ts -> js