   # We need the second to last path segment because Jekyll makes pretty URLs by
   # creating directories named after pages with a single index.html file in each
   lessonNumber = pathSegments[pathSegments.length - 2]
-  
+
   $(".toBeRevealed").each (idx, el) -> $(this).data("step", idx)
-    
+
   $(".scratchpad").each (idx, el) ->
     setupAce(lessonNumber, idx, el)
 

  if (nextSection?)
    nextStepId = nextSection.data("step")
    currStepId = $(currentPad).closest(".displayed").data("step") ? -1
    
    # Don't display the panel unless it is the next one
    return unless currStepId + 1 == nextStepId  
      
    nextSection.fadeIn('slow')
    $('body').scrollTo(nextSection, ->
      nextSection.removeClass("toBeRevealed").addClass("displayed")

  $(el).bind('keyup', (e) ->
    previewMd(pos, editor)

    $('.renderpad a').each (idx, el) ->
      # In the link lesson, I don't want people to deal with typing http://
      href = $(el).attr('href').match(/www\..+/)
      href = "http://#{href}"
