use jQuery.each instead of data.each