Use jQuery to set classes in v2 compatibility shim, also use _itemize for adding the masonry-brick classes.