When we hear the word religion we often cringe, waiting to hear what follows. However, as James points out religion is an expression of our devotion to God. And to do that correctly you must take care of those in need and be set apart from the evils of this world.
Love the Lord God with all of your heart, soul and mind and then love your neighbor as you love yourself.