Fix `key` global leak

Alternatively, one could use `Object.keys(config).forEach(fn)`?