 exports.raw_cell_url = (value) ->
   URI(makeHref 'raw_notebook', splat: btoa value).absoluteTo(location.href).toString()
 
-window.lead = {settings: Settings, init_app: exports.init_app}
+window.lead =
+  settings: Settings
+  init_app: exports.init_app
+  Router: Router
+  React: React
 
 window.React = React

      Route {path: '/help', name: 'help-index', handler: HelpComponent}
      Route {path: '/help/:key', name: 'help', handler: HelpComponent}
      Route {name: 'settings', handler: SettingsComponent}
      Route {path: '/:gist', name: 'old_gist', handler: null_route -> Router.transitionTo 'gist_notebook', gist: @props.params.gist}

  # TODO handler errors, timeouts

  if publicUrl?
    `__webpack_public_path__ = publicUrl`

  extraRoutes = Settings.get('app', 'extraRoutes') or []
  bodyWrapper = Settings.get 'app', 'bodyWrapper'

  raw_cell_value = null
