James is talking to Jewish Christians that don't seem to have a problem with a works righteousness, because he never mentions it like the book of Galatians and Hebrews. He makes it clear in the first chapter he is speaking to believers, he does speak of salvation being a free gift of God:
Don’t be deceived, my dear brothers and sisters. Every good and perfect gift is from above, coming down from the Father of the heavenly lights, who does not change like shifting shadows. He chose to give us birth through the word of truth, that we might be a kind of firstfruits of all he created. (James 1:16-18)
They appear to have a problem with incomplete repentance:
Therefore, get rid of all moral filth and the evil that is so prevalent and humbly accept the word planted in you, which can save you. (James 1:21)
This group was struggling with some kind of licentiousness, they had been born again and had the word of God planted in their hearts. James is telling them how to navigate temptation, to avoid the hazards of a believer. There is nothing here about the doctrine of justification by grace through faith because they already knew that, they were already believers. Paul goes through a lot of the same things with the Corinthians, they liked to say all things are permissible (1 Cor. 6:11-12; 1 Cor. 10:22-24)
Justified comes from a word in the Greek that can be translated 'just, fair right', it can also be translated 'justified', it can also be translated righteousness. James isn't talking about the justification that comes at conversion, they already have that. James is telling them to go on to maturity, the time when the believer manifests complete repentance and starts to be a fruitful minister.
Now this is not controversial, I think it's a popular discussion because guys like you get to argue it in circles with these pedantic one liners. Just a word of warning, don't trifle with essential doctrine. There is nothing here that is all that hard to understand if you bother to actually learn the doctrine of justification by grace through faith and read the book of James in it's proper context. This business of chasing works are needed for salvation is absurd, if you follow the context these people have been Christians for quite some time and know better then to act the way they are.