Javascript Remove Array Element While Iterating Words Of Affirmation