Removing use of Array.filter for IE compatibility.