details += renderField("Subject", data["location"][0]["md-subject"]);
if (locations.length == 0) {
details += '<tr><td colspan="2">No locations for record!</td></tr>';
details += renderField("Subject", data["location"][0]["md-subject"]);
if (locations.length == 0) {
details += '<tr><td colspan="2">No locations for record!</td></tr>';