var $child = [].filter.call(this.children, function(child) { return child.classList.contains('class1'); });