SERIOUSLY!!!! Did you read all of James 2 or just the one verse. James clearly states that if you truly have faith you will have works. As Paul says in Ephesians 2, We are saved by grace, it is a gift NOT BY WORKS so that noone can boast. . .and then he says in verse 10 that there are works God has planned for us to do. We are saved if we believe(have faith) in the Grace offered to us, but if we believe in what God did for us we will do works. If you says you believe but your life doesn't reflect that you are a liar and the truth is not in you.
1 John 2:
3 Now by this we know that we know Him, if we keep His commandments. 4 He who says, “I know Him,” and does not keep His commandments, is a liar, and the truth is not in him. 5 But whoever keeps His word, truly the love of God is perfected in him. By this we know that we are in Him.