Test Case Boilerplate

Fork this way...

HTML

<div class="box">...</div>
<div class="box">...</div>

JavaScript

$("div.box").each(function(index) {
    $(this).wrap(function() {
        return "<div class='boxwrap index_" + index + "' />";
    });
});