jQuery plugin pattern with unit testing.