Can the contents of this `<script>` tag be factored out in to a separate file?