Well, in Chrome, he ends up with 4 checkboxes, not two. Where two of them are the <span>s and don't function as checkboxes.
So maybe there's a bug in that library.
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.