ajout detection d activation javascript