adds result displayed on page instead of by JS popup