/*
 * fc-autocomplete
 * https://github.com/djembuka/fc-autocomplete
 *
 * Copyright (c) 2014 Tatiana
 * Licensed under the MIT license.
 */

(function($) {

  // Collection method.
  $.fn.fc_autocomplete = function() {
    return this.each(function(i) {
      // Do something awesome to each selected element.
      $(this).html('awesome' + i);
    });
  };

}(jQuery));

/*
 * fc-autocomplete
 * https://github.com/djembuka/fc-autocomplete
 *
 * Copyright (c) 2014 Tatiana
 * Licensed under the MIT license.
 */

(function($) {

  // Collection method.
  $.fn.fc_autocomplete = function() {
    return this.each(function(i) {
      // Do something awesome to each selected element.
      $(this).html('awesome' + i);
    });
  };

  // Static method.
  $.fc_autocomplete = function(options) {
    // Override default options with passed-in options.
    options = $.extend({}, $.fc_autocomplete.options, options);
    // Return something awesome.
    return 'awesome' + options.punctuation;
  };

  // Static method default options.
  $.fc_autocomplete.options = {
    punctuation: '.'
  };

  // Custom selector.
  $.expr[':'].fc_autocomplete = function(elem) {
    // Is this element awesome?
    return $(elem).text().indexOf('awesome') !== -1;
  };

}(jQuery));

Fix main js file to pass tests