var map = function() {
  // 'this' is the document in question
  // Only emit if value is divisible by 2
  if (0 == this.value % 2) {
    // We don't care about grouping, so use 1 as the key
    emit(1, this.value * 2);
  }
}