Using Reduce Method Javascript Substring Negative Words