jQuery plugin which finds the common parent of a set of elements