function searchFoos() {
var input, filter, tbody, table, tr, a, i;
input = document.getElementById("myInput");
filter = input.value.toUpperCase();
table = document.getElementById("list");
tr = table.getElementsByClassName("grid-item");
for (i = 0; i < tr.length; i++) {
td = tr[i].getElementsByTagName("a")[0];
a = td.getElementsByTagName("div")[0].getElementsByTagName("div")[0].getElementsByTagName("div")[0];
if (a.innerHTML.toUpperCase().indexOf(filter) > -1) {