fixed the js for the waiting list