              *
              *************************/

             // constructor for states so only curated
             // states end up getting called
             function State(template, easyButton){

                 this.title = template.title;
                 this.stateName = template.stateName ? template.stateName : 'unnamed-state';

                 // build the wrapper
                 this.icon = L.DomUtil.create('span', '');

                 L.DomUtil.addClass(this.icon, 'button-state sta