{% set js %} 
  {% include "../assets/scripts/embedded/theme-switcher.js" %}
  {% if site.isProduction %}
    {% include "../assets/scripts/embedded/register-serviceworker.js" %}
  {% endif %}
{% endset %}
<script>{{ js | jsmin | safe }}</script>
