     if speed
       @speed = speed
 
-    unless back then back = false
-
     if @isTransitioning is true then return else @isTransitioning = true
 
     @targetPanel.style.display = "block"
     @currentPanel.style.display = "block"
 
-    if back is true
+    if @back is true
 
       # must perform this initial tranform to get animation working in the next step
       @targetPanel.style.webkitTransition = "0ms"

    flight.goToPage('#panel-1')

$('.forward').click (e) =>
  flight.goToPage('#panel-2')


#if 'ontouchstart' in window

    else
      @currentPanel.style.left = "0%"

  goToPage: (targetPanel,options) ->

    if options.back
      @back = options.back

    @targetPanel = document.querySelector(targetPanel)
    transtionType = @currentPanel.getAttribute("data-transition")
