Post Api Call Using Javascript Innerhtml Not Updating