A jQuery function to wrap every n elements.