I don't what is *weird*, you document the constructor returned by the current function. But as mentioned in [a previous comment](https://github.com/ezsystems/ez-js-rest-client/pull/9#discussion_r7088464), *the CAPI variable can be removed* so it **can** also be kept if you prefer.