post the result on the page instead of alert