     @options = options
     self = this
     @overlay = $("<div class='overlay'></div>")
+    $('body').append(@overlay)
 
     $(@selector).click (event) ->
       event.preventDefault()

    @overlay.css('top', top)
    @overlay.width(width)
    @overlay.height(height)

    $('body').addClass('scroll-lock')

    overlayContent.show()

  close: ->
    @overlay.hide()
    $('body').removeClass('scroll-lock')



  open: (target) ->
    overlayContent = $(target).find('.js-overlay').clone()

    @overlay.append(overlayContent)

    maxWidth = $(window).width() - 20
    maxHeight = $(window).height() - 20
