Created by: cvrebert
Rather than building a string of HTML and then parsing it, which is overkill and comparatively slow, this simply creates a new blank <div> and then adds the requisite classes via jQuery.
This could be further tweaked to use className instead of jQuery's addClass at the cost of a bit more verbosity; I opted to be conservative.