print results funciont JS