```javascript
Object.keys(extension2).forEach(function(key) {
  result[key] = extensions[key];
});
````