Don't worry about the Jihadis. They will self-destruct. There are two scenarios:
1) With more education, Islam will mature and change (hope :) and embrace secularism and tolerance for other people, and with poverty gone, communism will vanish. Both these things (which stand in the way of democracy) will have no supporters.
2) The other doomsday scenario, these two will get upper hand and the entire world will end in a global war (Islam and Communism are OPPOSITES, they are both extreme in their outlook, and can't tolerate each other). In that case, every one will PERISH, with all these nuclear weapons around.