Got it working, thanks for the replies.
I put everything into the CI, even if it doesn't follow standards, because:
a) it requires it's own CSS and .js,
a) the functionality is only required for this CI, and I'd like to easily switch it off in one place,
b) it's a temporary solution
Demo can be seen in the "Site Menu" CI on
my site.