Invite button render js fix