allow formatSelection to return a jQuery object