First, you must send strong signals you are no longer supporting Islamic Jihad. So, you jail your brother from the Muslim Brotherhood.
Next you hire someone like me to run your military intervention in the Levant. You must team up with the Russians, and you must tie that co-operation with fixing the mess in Ukraine.
Simple process, bomb ISIS to before the stone age. Then pick the left-overs off with snipers.
Is there any part you did not understand?