function createOrgInfo(orgName, container) { queryAPIByOrg("", orgName, (orgData) => { console.log("called"); var html = "
"+ "" + "
\
\

"+orgData.name+"

" + (orgData.description != null ? "

"+orgData.description+"

" : "") + " \
\
    "+ (orgData.location !=null ? "
  • Location: "+orgData.location+"
  • " : "") + " \
\
"; $("#" + container).html(html); }, function(error) { alert("Organization Does Not Exist"); window.location.href = "./GraphGenerator.html"; }); }