after javascript invite a message is displayed