               callback(params)
             else
               $.ajax(path, {
-                data: $.extend({}, paramsCollection($element), {init: true, item_ids: id}),
+                data: $.extend({}, paramsCollection($element, ''), {init: true, item_ids: id}),
                 dataType: "json"
               }).done((data) ->
                 if(data != null)

      result = '<span class="'+classes.join(' ')+'">'+item.text+'</span>'
    result

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

          url: path,
          dataType: 'json',
          data: (term, page) ->
            ajaxData = {term: term, page: page}
            return $.extend({}, paramsCollection($input, term), ajaxData)
          ,
          results: (data, page) ->
            more = (page * limit) < data.total
            return {results: data.items, more: more}
        },
        initSelection : (element, callback) ->
          $element = $(element)
