anchor.diff:                  if ((current + 1) < usersList.length / itemsPerPage) {
   
                       current++;
  -                    populateTable(usersList, current, itemsPerPage)
  +                    populateTable(usersList, current, itemsPerPage, filterLength)
                   }
               });
   
  
positive.code:             var usersList = null;
              var itemsPerPage = 15;
              var current = 0;
  
              var populateTable = function(users, page, itemsPerPage) {
                  $("#usersListMain").html("");
                  for (var i = page * itemsPerPage; i < page * itemsPerPage + itemsPerPage && i < users.length; ++i) {
                      $("#usersListMain").append(
                          '<tr>' +
                          '<td>' + users[i].username + '</td>' +
                              '<td> <button type="button" id="' + users[i].username + '" class="btn btn-danger banIt"> Ban </button> </td>' +
                          '</tr>'
                      );
                  }
              }
  
  
negative.code: 
          <div class="col-sm-6">
              <p class="text-center"> Lista paginata cu useri </p>
              <input type="text" id="filterLength" class="form-control" placeholder="nr chars"/>
              <button type="button" id="filter" class="btn btn-success">
                  filter
              </button>
  
              <button type="button" id="reset" class="btn btn-success">
                  reset
              </button>
  
              <table id="users" class="table table-striped table-bordered" cellspacing="0" width="100%">
                  <thead>
                  <tr>
  