update attendee js to fix the bug