Post Api Call Using Javascript Variables In Innerhtml