$(document).ready(function() {
	
	$("label:has(input[type=checkbox])")
		.addClass("checkbox")
		.each(function () {
			children = $(this).children().detach();
			$(this).wrapInner('<span />').prepend(children);
		});
});
