I have a function that checks the age of a form submission and then returns new content in a div depending on their age. Right now I am just using getElementById to replace
Use Element.classList
document.getElementById('hello').classList.add('someClass');
The .add method will only add the class if it doesn't already exist on the element. So no need to worry about duplicate class names.
.add