Standard dev environment server-var to JS

<script type="text/javascript">
    window.devEnvironment = <?php echo get_dev_enviroment(); ?>;
</script>
<script type="text/javascript" src="http://example.com/my-script.js"></script>