Scientists have developed a way to pinpoint autism in children at earlier ages by testing their saliva.