I have report widget for the dashboard that I want to use moment.js with.
My current solution is just to add moment.js to the bottom of the report widget
<div class="report-widget">
... stuff ...
</div>
<script src="//cdnjs.cloudflare.com/ajax/libs/moment.js/2.7.0/moment.min.js"></script>
This isn't ideal as I'd like to have the file hosted on the server. I'd also prefer to have any scripts load at the bottom or top of the page, but that's not as big an issue.
How can I add a javascript asset and load when my report widget is loaded? Is there a way to inject my <script> tag with those at the top of the page?