We are only justified by genuine inward faith. God is not fooled by outward claims of faith alone. Without the accompanying works which demonstrate inward faith, faith does not save. Read St. James again:
King James Version (KJV)
14 What doth it profit, my brethren, though a man say he hath faith, and have not works? can faith save him?