Hey, you’re supposed to ignore that verse! Either that or give it such a strained and warped interpretation that it somehow means the exact opposite of what is clearly written! In other words, how dare you!
There are two meanings to the word justified.
1. The act of justifying or the state of being justified; a showing or proving to be just or conformable to law, justice, right, or duty; http://www.webster-dictionary.net/d.aspx?w=Justification
James is speaking of the second, Paul is speaking about the first.
Rom.4: 2] For if Abraham were justified by works, he hath whereof to glory; but not before God. [3] For what saith the scripture? Abraham believed God, and it was counted unto him for righteousness. [4] Now to him that worketh is the reward not reckoned of grace, but of debt. [5] But to him that worketh not, but believeth on him that justifieth the ungodly, his faith is counted for righteousness.