The 'works' to which James is referring:
27 Pure religion and undefiled before our God and Father is this, to visit the fatherless and widows in their affliction, and to keep oneself unspotted from the world. Ja 1
15 If a brother or sister be naked and in lack of daily food,
16 and one of you say unto them, Go in peace, be ye warmed and filled; and yet ye give them not the things needful to the body; what doth it profit? Ja 2
...are the very same works by which we're all going to be judged in that day of judgement:
4 Then shall the King say unto them on his right hand, Come, ye blessed of my Father, inherit the kingdom prepared for you from the foundation of the world:
35 for I was hungry, and ye gave me to eat; I was thirsty, and ye gave me drink; I was a stranger, and ye took me in;
36 naked, and ye clothed me; I was sick, and ye visited me; I was in prison, and ye came unto me. Mt 25
41 Then shall he say also unto them on the left hand, Depart from me, ye cursed, into the eternal fire which is prepared for the devil and his angels:
42 for I was hungry, and ye did not give me to eat; I was thirsty, and ye gave me no drink;
43 I was a stranger, and ye took me not in; naked, and ye clothed me not; sick, and in prison, and ye visited me not. Mt 25
There's absolutely no mention of our faith at this judgment, let alone our 'faith alone'.
This 'justification' is before Christ Himself, not before men.