Can you add a safeguard for the case when config is not defined? I.e. start the constructor with

```js
config = config || {};
```