         if settings.open ? $uploader.data('open')
           openUploader()
         else
-          $uploader.find('.js-uploader-open').on 'click', (e) ->
+          $uploader.find(settings.openSelector).on 'click', (e) ->
             e.preventDefault()
             e.stopPropagation()
             openUploader()

  methods =
    init: (options) ->
      settings = $.extend true,
        {}
      , options

      throw "host isn't defined" unless settings.host

        getIframe = ->
          modalId = settings.modalId ? $uploader.data('modalId')
          if modalId
            $uploaderIframe = $("##{modalId}").find(settings.iframeSelector)
          else
            $uploaderIframe = $uploader.find(settings.iframeSelector)
          $uploaderIframe.first()

        initIframe = ->
