Naive guard against adding a class twice 

Hey. Found a problem where if you try and add a class name to an element where that class already exists then you wind up with a scenario with multiple classes.

Should be fixed with this PR.