<script>
  var globals = <%= Jbuilder.encode do |json|
        json.api_url          APP_CONFIG[:api_url]
        json.api_proxy_url    APP_CONFIG[:api_proxy_url]
        json.api_session_id   Current.setting.api_session_id
        json.disable_cors     APP_CONFIG[:disable_cors]
        json.standalone       APP_CONFIG[:standalone]
        json.settings         Current.setting
        json.debug_js         admin?
        json.env              Rails.env
        json.show_results_tip show_results_tip?
      end.html_safe %>;
</script>

<script>
  var globals = <%= Jbuilder.encode do |json|
        json.api_url          APP_CONFIG[:api_url]
        json.api_proxy_url    APP_CONFIG[:api_proxy_url]
        json.api_session_id   Current.setting.api_session_id
        json.disable_cors     APP_CONFIG[:disable_cors]
        json.standalone       APP_CONFIG[:standalone]
        json.settings         settings_as_json(Current.setting)
        json.debug_js         admin?
        json.env              Rails.env
        json.show_results_tip show_results_tip?
      end.html_safe %>;
</script>

Fix missing `settings_as_json` in JS globals
Fix missing `settings_as_json` in JS globals

Line was in the original commit but seems to have been removed in a
rebase.
