show summary icon only for items with additional data; fix jshint error