Just like above. 

```
{% block javascripts %}
{{ parent() }}
{% if news.gallery %}
    {% javascripts
    'js/lightbox-2.6.min.js'
    'js/jquery.jcarousel.min.js'
    output="js/compiled/gallery.js" %}
    <script type="text/javascript" src="{{ asset_url }}"></script>
    {% endjavascripts %}
{% endif %}
{% endblock %}
```