$.grep returns an array and does not alter original. Have made sure the filtered array is assigned to the variable.