window.Bootsy = window.Bootsy || {};

Bootsy.init = function() {
  Bootsy.areas = {};

  $('textarea.bootsy_text_area').filter(':visible').each(function(index) {
    var area = new Bootsy.Area($(this));
    var areaIdx = $(this).attr('id') || index;

    if(Bootsy.areas[areaIdx] !== undefined) {
      areaIdx = $(this).attr('id') + index;
    }

    area.init();

    Bootsy.areas[areaIdx] = area;
  });
};

$(Bootsy.init);

@@ -1,20 +1,40 @@
+/* global Bootsy */%0A
 window.Bootsy = wind

Remove Jshint warnings.