Besides, I'm not sure what indication people get that the ewoks won the battle, just because we see some stormtroopers get knocked down. I find it strange how so many people blow the scenes of individual troops being taken by surprise out of proportion, but ignore the parts which show groups of ewoks fleeing from retaliatory attacks (AT-STs in particular). Besides, if the majority of the ewoks hadn't been driven off, then how would Han Solo have been able to convince the Imperial officers inside the bunker that the battle was over?
"There is something going on in time and space, and beyond time and space, which, whether we like it or not, spells duty." -Winston Churchill
"For of all sad words of tongue or pen, The saddest are these: 'It might have been!'" -John Whittier
"Apathy is death." -Kreia