Tried to get output to show on the same page as the form, however my javascript function is not working to show the elements holding the data