Changed class utility methods to use the DOMTokenList prototype methods to make it more robust when passing in space-separated lists of classes