This results in `TypeError: this is undefined` in `alarms.js:31` which (after these changes) is:

```
27   function Alarm(config) {
28     if (config instanceof Alarm) {
29       config = config.toSerializable();
30     }
31     var econfig = Utils.extend(this.defaultProperties(), config || {});
32     this.extractProtected(econfig);
33     Utils.extend(this, econfig);
34   }
```