Were the children unable to see the incoming train or are they unable to hear when one would say move out?
I would not change the track but shout at the children to jump out at once.....