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

"+orgData.name+"

" + (orgData.description != null ? "

"+orgData.description+"

" : "") + " \
\ \
" $("#" + container).html(html); $('#dataTable').DataTable(); }, function(error) { console.log("Unable to load table data"); }); }