bash -> js