       $(@).each ->
         redraw = this.offsetHeight
 
-    $('.js-editor-open').on 'click', (event) ->
+    $( '.js-editor-open' ).on 'click', ( event ) ->
       event.preventDefault()
 
-      $('.js-editor-textarea')
-        .addClass('is-editing')
-        .parent('.js-editor-overlay')
-        .addClass('is-active')
+      $( '.js-editor-textarea' )
+        .addClass( 'is-editing' )
+        .parent( '.js-editor-overlay' )
+        .addClass( 'is-active' )
 
-      setTimeout do $('.js-editor-textarea').focus(), 50
+      setTimeout $('.js-editor-textarea').focus(), 50
 
-    $(document).on 'click', '.js-editor-close', (event) ->
+    $(document).on 'click', '.js-editor-close', ( event ) ->
       event.preventDefault()
 
-      $('.js-editor-overlay').removeClass('is-active')
-      $('.js-editor-textarea').removeClass('is-editing').focus()
+      $( '.js-editor-overlay' ).removeClass( 'is-active' )
+      $( '.js-editor-textarea' ).removeClass( 'is-editing' ).focus()
 
-  # Bind behavior to document load/reload
-  # NOTE: Needed for Turbolinks compatibility
-  $(document).ready domready
-  $(document).on 'page:load', domready
+  # -------------------------------------
+  #   Turbolinks & DOM Ready Handlers
+  # -------------------------------------
+
+  $( document ).ready( domready )
+  $( document ).on( 'page:load', domready )

    #---------------------------------

    # Collapse accordion content on DOM Ready
    $('.js-accordion-content').hide()

    $('.js-accordion-btn').on 'click', (e) ->
      $(@).closest('.js-accordion').find('.js-accordion-content').slideToggle()

    # -------------------------------------
    #

    #---------------------------------

    Orientation.tableBank
      context : $('.markdown')
      element : $('table')
      gutter  : '20'

    # -------------------------------------
    #   Fullscreen Editor
