   # Bottom panel (for text or anything else)
   bottomPanel:
     default:
-      attributes:
-        class: 'bottom-panel'
+      attributes: { class: 'bottom-panel' }
       styles:
         position: 'absolute'
         bottom: 0

  # Darkening properties
  darkening:
    default:
      attributes:
        id: 'overlay'
      styles:
        position: 'absolute'
        top: 0

# Hermitage logic
#

# Creates base element with attributes and styles from params
createElement = (tag, params) ->
  tag
    .attr(params.default.attributes)
    .css(params.default.styles)
    .css(params.styles)

# Creates darkening overlay, shows it and sets its click handler
createDarkening = ->
  createElement($('<div>'), hermitage.darkening)
    .css('opacity', hermitage.darkening.opacity)
    .css('filter', "alpha(opacity='#{hermitage.darkening.opacity * 100}')")
    .appendTo($('#hermitage'))
    .hide()
    .fadeIn()
