You could use [`box.classList.add`][1] (although not in <IE10). I guess this is more foolproof though.

[1]: http://caniuse.com/classlist