We already have a helper extend() method in common see line 19 [here](https://github.com/guardian/frontend/blob/master/common/app/assets/javascripts/common.js#L19) that is indentical to this.