jQuery plugin for an object-oriented validation