I am not sure what you mean.. 

Do you want this?

    if (vibrationEnabled) {
      classes.add('vibration');
    } else {
      classes.remove('vibration');
    }