     else
       throw new Error "#flight or .content not found."
 
+  # detects user agent being used
   detectUA: ->
     userAgent = window.navigator.userAgent
     @os.webkit = (if userAgent.match(/WebKit\/([\d.]+)/) then true else false)

      @currentPanel.addEventListener "webkitTransitionEnd", @finishTransition, false
    , 5

  finishTransition: =>
    @removeClass @currentPanel, 'visible'
    @addClass @targetPanel, 'visible'

      if options.targetPanel?
        @targetPanel = options.targetPanel
        @pageHistory.push(@targetPanel)
        # target panel passed from options
        @targetPanel = document.querySelector(options.targetPanel)
        transitionType = @targetPanel.getAttribute("data-transition")
      else
