Convert the HeaderElement to use ES6 classes.