Vinculando JavaScript a Flask HTML
<script src="{{url_for('static', filename='somejavascriptfile.js')}}"></script>
Combative Camel
<script src="{{url_for('static', filename='somejavascriptfile.js')}}"></script>