js fixed for invitation