<script src="{{ '/assets/js/modernizr.min.js' | relative_url }}"></script>
<script src="{{ '/assets/js/events.js' | relative_url }}"></script>
the first script was resolving correctly to the relative path, but the second one resulted in an empty source.