Forty countries have agreed on a draft United Nations Regulation for Advanced Emergency Braking Systems (AEBS) for cars.