I suggest getting a better understanding of what those scriptures mean, rather than disagreeing with them.
When God says He's jealous, what that means is that He wants us to make Him the center of our lives, not idols or other things that can be distractions from Him. It's meant as an expression of love and a desire to be in fellowship with us. Not as a petty emotion.
And according to scripture there are no 'innocent' people. We all sin. And we all do wrong. And children were being raised up by peoples whose sins were becoming so bad God could not tolerate the growth and spread of sin. These 'innocent' children were still going to grow up to be horrible sinners that would continue to fill the earth.