fix ts -> js