added javascript for waiting room
added error message