React Create Html Element Javascript Value Function