Use built-in element.classList functions
Merge pull request #379 from dannywils/master

Use built-in element.classList functions