How to add client web items as Dropdown 2 button

We already tried that, but our client-web-item is not present once JS is loaded. Should we use AJS.toInit(), as per Cant load javascript - #4 by ladislavrolnik?
Thanks in advance.
Cheers.