I had the same problem until I took a closer look at the markup.
A temporary fix is to link to the thickbox.js file in header.php
<?php wp_head(); ?>
<script type='text/javascript' src='https://yoursite.com/wp-includes/js/thickbox/thickbox.js'></script>
</head>
The same principle applies to other javascript libraries.