it's probably not a good idea to have both variables called `$visitor.` Make your array `$visitors`.

    $visitors.forEach(function($visitor) {
      // ...
    }