Manage HTML DOM with vanilla JavaScript