dedupe underscore.each snippet