How to write a javascript to discern between specific guests for a guest list variable array