Replace CSS utilities with classList methods

Replace the hasClass/addClass/removeClass/toggleClass helper functions
with the classList equivalents (only non-jQuery instances).
Merge pull request #324 from gavin19/master

Replace CSS utilities with classList methods