Displayed below are the associated documents. This information will only be visible if there are multiple related documents in the array.
displayData = function(records) {
var recordsArray = [];
for (var j = 0; j < records.results.data.length; j++) {
if (records.results.data[j].length < 0) {
console.log('do not display');
} else if (records.results.data[j]) {
recordsArray.push(records.results.data[j]);
}
}