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 of which we're all going to be judged by in that day of judgement:
34 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.
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
Thus:
5 but after thy hardness and impenitent heart treasurest up for thyself wrath in the day of wrath and revelation of the righteous judgment of God;
6 who will render to every man according to his works:
7 to them that by patience in well-doing seek for glory and honor and incorruption, eternal life: Ro 2
Justification by faith ALONE is unscriptural.