   return  unless appLoadingStatus_ is AppNotLoaded
   appLoadingStatus_ = LoadingApp
   loadScript applicationURL(applicationOptions), ->
-    window[privateNamespace]["init"] applicationOptions, ->
+    _window[privateNamespace]["init"] applicationOptions, ->
       appLoadingStatus_ = AppLoaded
       notifyObservers readyObservers_
       applicationDidLoad()
   `undefined`
 
-api = window[namespace]
+api = _window[namespace]
 if api and api['ready'] and api['load']
   console.error 'SublimeVideo loader has been installed more than once.'
 else
-  api = window[namespace] = {}
+  api = _window[namespace] = {}
   api["ready"] = (observer) ->
     if appLoadingStatus_ is AppLoaded
       observer()

  else
    callback()

domDidLoad = ->
  ready = 0
  if doc.attachEvent and doc.readyState is "complete"
    doc.detachEvent onreadystatechangeString, domDidLoad
    ready = 1
  else if doc.addEventListener
    doc.removeEventListener DOMContentLoadedString, domDidLoad, false
    ready = 1
  if ready and not domLoaded_
    domLoaded_ = true
    loadApplication() if shouldLoadApplication() or forceAppLoading_


    # document is already laoded, fire callback
    domDidLoad()
  else
    if _window.jQuery
      _window.jQuery(doc).ready(domDidLoad)
    else
      bindReady()

