Bubble enables plugin builds using their framework. https://manual.bubble.io/building-plugins
Once you are building in Bubble you can use when needed JS scripts within the logic and HTML/CSS for the UI.