Including Additional JavaScript Libraries
Third-party libraries should normally be imported after insight-4.7.js.
This particularly applies to jQuery plugins, because insight-4.7.js includes a version of jQuery.
For example, if we have a jQuery library called
jquery.TableCSVExport.js in a subfolder
js/lib, then we would load it in as follows:
<script src="$distrib/insight-4.7.js"></script>
<script src="js/lib/jquery.TableCSVExport.js"><script>