jQuery( "#selector" ).removeClass( "selected highlight" );
can be written as
document.getElementById('selector').classList.remove( "selected", "highlight" );
or as
document.querySelector('.selector').classList.remove( "selected", "highlight" );