jQuery plugin to handle collections