anchor.diff:  <script>
     $(function() {
  -    console.log('ready');
       var count = 0;
  -    $('#addEmail').on('click', function(e){
  -      $('#emails ul').append('<li id="emailInput'+(count++)+'"><%= text_field_tag "user_emails[]", params[:email] %><a href="javascript:void()" class="removeEmail" onclick="removeEmail(this)">Remove</a></li>');
  +    appendEmail();
  +    $(document).on('click', '.add-email', function(e){
  +      if (!$(this).hasClass('email-added')){
  +        $(this).addClass('email-added');
  +        appendEmail();
  +      }
       });
  +
  +    function appendEmail(){
  +      $('#user-list').append('<li id="emailInput'+(count++)+'"><%= text_field_tag "user_emails[]", params[:email], :class => "input add-email", :placeholder => "Click to add user"%><a href="javascript:void()" class="removeEmail" onclick="removeEmail(this)">Remove</a></li>');
  +    }
  +    function removeEmail(item){
  +      $(item).parent().remove();
  +    }
     });
  -  function removeEmail(item){
  -    $(item).parent().remove();
  -  }
   </script>
   
   <%= simple_form_for @group, :html => { :class => "form-horizontal"} do |f| %>
  
positive.code: <div>Adding some rockstars to this party will give them the same access &mdash; to create and edit polls and view results &mdash; as you. (To share results only, go to the survey page. From there, you can export a CSV or print the webpage to PDF.)</div>
  <br>
    <div id="emails">
  
      <%= f.input :name, :label => "1", :placeholder => current_user.email, :disabled => true, :hint => "You’re automatically a member of any group you create" %>
  
      <%= f.input :name, :label => "2", :placeholder => "Add an email address" %> 
      
      <ul>
        <% @group.users.each do |user| %>
          <li>
          <%= user.email %>
  
negative.code:     <%- end -%>
    </div>
  
  
  <div style="display:none;">
    <%= f.association :polls, :collection => current_user.visible_polls %>
  