               )
       }
 
-      s2UserOptions = $input.data("s2options")
+      s2UserOptions = $input.data("s2-options")
 
       if s2UserOptions is `undefined`
         s2FullOptions = $.extend({}, s2DefaultOptions)

    $inputs = $('input.auto-ajax-select2').not('.select2-offscreen')
    $inputs.each ->
      $input = $(this)
      path = $input.data('href')
      limit = $input.data('limit') || 25
      s2DefaultOptions = {
        allowClear: true
        multiple: false
        formatSelection: formatSelection
        formatResult: formatResult
#        INFO: Not documented feature of select2 library, worked very well, but not clearing classes after item removing
#        formatSelectionCssClass: itemSelectionCssClass
        formatResultCssClass: itemResultCssClass

            ajaxData = { term: term, page: page }
            $this = $(this.context)

            additionalUserData = $this.data('s2-options')
            paramsCollection = {}
            if additionalUserData isnt `undefined`
              additionalAjaxData = additionalUserData['additional_ajax_data']
