Just try to use them without the javascript file.
If some of the functionality does not work, you could look into the javascript for that specific functionality to see what it does. Maybe it is as simple as adding or removing a class. In that case you can mimic the functionality by using elm to listen to events and toggling the classes.
If the javascript functionality is more complex (DOM manipulation), it might require more complex techniques (like webcomponents).