var quadimages = document.querySelectorAll("#quad figure"); for (i=0; i