Note: This demo uses Underscore fetched from an external domain (gitHub, in that case).
Shepherd allows external libraries to be securized as modules.
For Underscore, the required code in your header is enough:

<script type="text/shepherd-config">
{
  modularize: '_',
  noGlobal: '_'
}
<script>

Expected output: All the public methods accessible in Underscore