ES6 Adicionar e remover a classe

let el = document.getElementById('container');

//remove class
el.classList.remove('first');

//remove class
el.classList.add('first');
Jolly Jellyfish