Try to not pollute the global namespace. I know there is still a lot of code inside the window but let's keep this as small as possible. I note this function is only used inside the `Common` object so move it there and use `this.getInterface()` instead.