Teenage' galaxies from the early universe contain mysterious heavy elements, James Webb telescope reveals