 
 
   open: (target) ->
-    overlayContent = $(target).find('.js-overlay').remove()
+    overlayContent = $(target).find('.js-overlay').clone()
 
     @overlay.append(overlayContent)
-    $('body').append(@overlay)
 
     maxWidth = $(window).width() - 20
     maxHeight = $(window).height() - 20

    @options = options
    self = this
    @overlay = $("<div class='overlay'></div>")

    $(@selector).click (event) ->
      event.preventDefault()

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

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

    overlayContent.show()

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