Map an object key that ends with a value in Node.js